mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Added auto-conversion of typeclass to dbobj in ObjectDB.contents_get()
This commit is contained in:
parent
0efc371775
commit
348ff0b5f4
1 changed files with 1 additions and 0 deletions
|
|
@ -325,6 +325,7 @@ class ObjectDB(TypedObject):
|
|||
exclude is one or more objects to not return
|
||||
"""
|
||||
if exclude:
|
||||
exclude = [obj.dbobj for obj in make_iter(exclude)]
|
||||
return ObjectDB.objects.get_contents(self, excludeobj=exclude)
|
||||
return ObjectDB.objects.get_contents(self)
|
||||
contents = property(contents_get)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue