mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-03 12:20:37 +08:00
MAINT: Allow for orders with id 0
This commit is contained in:
1 parent
f4773053cb
commit
7aefa9c311
1 file changed
+1
-1
@@ -58,7 +58,7 @@ class Order(object):
|
||||
assert isinstance(sid, Asset)
|
||||
|
||||
# get a string representation of the uuid.
|
||||
self.id = id or self.make_id()
|
||||
self.id = self.make_id() if id is None else id
|
||||
self.dt = dt
|
||||
self.reason = None
|
||||
self.created = dt
|
||||
|
||||
Reference in new issue
Block a user