mirror of
https://github.com/ksherlock/prez.git
synced 2025-02-21 14:28:58 +00:00
fix bug where generated id wasn't remembered.
This commit is contained in:
parent
1e77651b0c
commit
15a232972e
6
base.py
6
base.py
@ -132,9 +132,9 @@ class rObject:
|
|||||||
|
|
||||||
for rID in rr:
|
for rID in rr:
|
||||||
if ix >= len(used) or used[ix] > rID :
|
if ix >= len(used) or used[ix] > rID :
|
||||||
self.id = rID
|
self._id = rID
|
||||||
xx.add(self.id)
|
xx.add(self._id)
|
||||||
return self.id
|
return self._id
|
||||||
ix += 1
|
ix += 1
|
||||||
raise Exception("Unable to allocate id for resource")
|
raise Exception("Unable to allocate id for resource")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user