mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-05 13:42:46 +08:00
MAINT: Allow for orders with id 0
This commit is contained in:
@@ -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