mirror of
https://github.com/evennia/evennia.git
synced 2026-04-07 00:45:22 +02:00
Made OOB tracking work for Attributes. Tested repeat across reloads.
This commit is contained in:
parent
57e7c6a11e
commit
d7fc0c7e16
2 changed files with 25 additions and 19 deletions
|
|
@ -209,7 +209,9 @@ def unpack_dbobj(item):
|
|||
except ObjectDoesNotExist:
|
||||
return None
|
||||
# even if we got back a match, check the sanity of the date (some databases may 're-use' the id)
|
||||
return _TO_DATESTRING(obj.dbobj) == item[2] and obj or None
|
||||
try: dbobj = obj.dbobj
|
||||
except AttributeError: dbobj = obj
|
||||
return _TO_DATESTRING(dbobj) == item[2] and obj or None
|
||||
|
||||
#
|
||||
# Access methods
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue