TagMapping implementation

Silly bug I made
This commit is contained in:
Jamie Hardt
2021-06-01 14:40:58 -07:00
parent 32e3cfc594
commit be7a01cab9

View File

@@ -21,8 +21,8 @@ class TagCompiler:
def marker_tags(self, at):
retval = dict()
for marker, time in [(m, t) for (m, t) in self.session.markers_timed() if t >= at ]:
applicable = [(m, t) for (m, t) in self.session.markers_timed() if t >= at]
for marker, time in sorted(applicable, key= lambda x: x[1]):
retval.update(parse_tags(marker.comments).tag_dict)
retval.update(parse_tags(marker.name).tag_dict)