From 7aefa9c3110a34bb9b1cacf8652bcd642849f820 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Thu, 17 Nov 2016 18:12:29 -0500 Subject: [PATCH] MAINT: Allow for orders with id 0 --- zipline/finance/order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/finance/order.py b/zipline/finance/order.py index 39e3996a..d326f206 100644 --- a/zipline/finance/order.py +++ b/zipline/finance/order.py @@ -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