Filter activities function is broken
Created by: GeraldJansen
Doing a bit of testing of v3.0-beta, I've noticed that the overview "Filter activities" function doesn't seem to do anything. Reduced traceback:
File "/usr/lib/python3/dist-packages/hamster/overview.py", line 549, in on_search_changed
self.find_facts()
File "/usr/lib/python3/dist-packages/hamster/overview.py", line 533, in find_facts
self.facts = self.storage.get_facts(start, end, search_terms=search)
File "/usr/lib/python3/dist-packages/hamster/client.py", line 156, in get_facts
for fact in self.conn.GetFactsJSON(dbus_range, search_terms)]
...
File "/usr/libexec/hamster/hamster-service", line 331, in GetFactsJSON
for fact in self.get_facts(range, search_terms=search_terms)]
File "/usr/lib/python3/dist-packages/hamster/storage/storage.py", line 161, in get_facts
return self.__get_facts(range, search_terms)
File "/usr/lib/python3/dist-packages/hamster/storage/db.py", line 717, in __get_facts
self.__check_index(datetime_from, datetime_to)
File "/usr/lib/python3/dist-packages/hamster/storage/db.py", line 880, in __check_index
params = [(fact.id, fact.name, fact.category, fact.description, " ".join(fact.tags)) for fact in facts]
AttributeError: 'Fact' object has no attribute 'name'