mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 03:57:17 +02:00
Fix error in attributehandler
This commit is contained in:
parent
fd351a2809
commit
e0268d6cb3
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ class AttributeHandler(object):
|
|||
# for this category before
|
||||
catkey = "-%s" % category
|
||||
if _TYPECLASS_AGGRESSIVE_CACHE and catkey in self._catcache:
|
||||
return [attr for key, attr in self._cache if key.endswith(catkey)]
|
||||
return [attr for key, attr in self._cache.items() if key.endswith(catkey)]
|
||||
else:
|
||||
# we have to query to make this category up-date in the cache
|
||||
query = {"%s__id" % self._model : self._objid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue