Skip to content

Commit

Permalink
Clarify bulk-create comment in spawner.
Browse files Browse the repository at this point in the history
  • Loading branch information
Griatch committed Mar 19, 2017
1 parent c27c96f commit dee0bfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions evennia/utils/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ def _batch_create_object(*objparams):
# bulk create all objects in one go

# unfortunately this doesn't work since bulk_create doesn't creates pks;
# the result are database objects at the next stage
# dbobjs = _ObjectDB.objects.bulk_create(dbobjs)
# the result would be duplicate objects at the next stage, so we comment
# it out for now:
# dbobjs = _ObjectDB.objects.bulk_create(dbobjs)

dbobjs = [ObjectDB(**objparam[0]) for objparam in objparams]
objs = []
Expand Down

0 comments on commit dee0bfe

Please sign in to comment.