File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
call_server/political_data/countries Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def cache_search(self, key_starts_with):
9191 elif isinstance (self ._cache .cache , flask_caching .backends .simple .SimpleCache ) \
9292 or isinstance (self ._cache .cache , dict ):
9393 # naively search across all the keys
94- for (k ,v ) in self ._cache .cache ._cache . items ():
94+ for (k ,v ) in self ._cache .cache .items ():
9595 if k .startswith (key_starts_with ):
9696 wet_value = pickle .loads (v [1 ])
9797 if isinstance (wet_value , list ):
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ def load_data(self):
455455
456456 # if cache is redis, add lexigraphical index on states, names
457457 if hasattr (self ._cache , 'cache' ) and isinstance (self ._cache .cache , flask_caching .backends .rediscache .RedisCache ):
458- redis = self ._cache .cache ._client
458+ redis = self ._cache .cache ._write_client
459459 searchable_items = legislators .items () + governors .items ()
460460 for (key ,record ) in searchable_items :
461461 for sorted_key in self .SORTED_SETS :
You can’t perform that action at this time.
0 commit comments