Commit b295d5ab authored by Georgios Dagkakis's avatar Georgios Dagkakis

NonStarvingEntry to give id and name to Entity correctly

parent 7ccb4e32
...@@ -70,9 +70,10 @@ class NonStarvingEntry(Queue): ...@@ -70,9 +70,10 @@ class NonStarvingEntry(Queue):
extraArgs=dict(self.entityData) extraArgs=dict(self.entityData)
extraArgs.pop('_class') extraArgs.pop('_class')
assert entityType, 'the entity type of the non starving buffer could not be identified' assert entityType, 'the entity type of the non starving buffer could not be identified'
entityTypeName=entityType.split('.')[-1]
entityType=Globals.getClassFromName(entityType) entityType=Globals.getClassFromName(entityType)
Eargs={'id':G.numberOfEntities, Eargs={'id':entityTypeName+str(G.numberOfEntities),
'name':str(entityType)+str(G.numberOfEntities), 'name':entityTypeName+str(G.numberOfEntities),
'currentStation':self 'currentStation':self
} }
Eargs.update(extraArgs) Eargs.update(extraArgs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment