Fix get_things_by_id not putting the results in cache.

This commit is contained in:
voussoir 2018-04-15 02:53:14 -07:00
parent 7d8b8daeba
commit 31b808bd64

View file

@ -1488,6 +1488,7 @@ class PhotoDB(
more_things = self.sql_select(query, bindings) more_things = self.sql_select(query, bindings)
for thing_row in more_things: for thing_row in more_things:
thing = thing_map['class'](self, db_row=thing_row) thing = thing_map['class'](self, db_row=thing_row)
thing_cache[thing.id] = thing
yield thing yield thing
def load_config(self): def load_config(self):