Commits

Maciej Fijalkowski committed e9485a7

slightly better - display loops at least

  • Participants
  • Parent commits 5f18887

Comments (0)

Files changed (1)

         all = flask.request.args.get('all', None)
         loops = []
         for index, loop in enumerate(self.storage.loops):
-            if 'entry bridge' in loop.comment:
-                is_entry = True
-            else:
-                is_entry = False
+            is_entry = False
             try:
+                start, stop = loop.comment.find('('), loop.comment.rfind(')')
+                name = loop.comment[start + 1:stop]
                 func = FunctionHtml.from_operations(loop.operations, self.storage,
                                                     limit=1,
-                                                    inputargs=loop.inputargs)
+                                                    inputargs=loop.inputargs,
+                                                    loopname=name)
             except CannotFindFile:
                 func = DummyFunc()
             func.count = getattr(loop, 'count', '?')