Commits

Ronny Pfannschmidt committed 0cb0b4c

ddoc fixes

Comments (0)

Files changed (1)

glas_process/ddoc.py

                 if doc.doc_type == "Task"
                     emit [doc._id] null;
                 if doc.stream
-                    emit [doc.task, doc.step] doc.stream
+                    emit [doc.task, doc.step], doc.stream
                 return
         """,
         'reduce': """(key, values, rereduce) ->
     'lines': {
         'map': '''(doc) ->
         if doc.stream && doc.line
-            emit [doc.step, doc.stream, doc.lineno] doc.line
+            emit [doc.step, doc.stream, doc.lineno], doc.line
         return
         '''
     }