MAINT: Allow for orders with id 0

This commit is contained in:
Richard Frank
2016-11-17 18:12:29 -05:00
parent f4773053cb
commit 7aefa9c311
+1 -1
View File
@@ -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