From 31b808bd648b1c78b01b7c171b37c6c26a4e240f Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 15 Apr 2018 02:53:14 -0700 Subject: [PATCH] Fix get_things_by_id not putting the results in cache. --- etiquette/photodb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 902980e..725524d 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -1488,6 +1488,7 @@ class PhotoDB( more_things = self.sql_select(query, bindings) for thing_row in more_things: thing = thing_map['class'](self, db_row=thing_row) + thing_cache[thing.id] = thing yield thing def load_config(self):