示例#1
0
    def _add_order_to_data_no_checking(self, order: Order):
        # Duplicates will be overriden, so be careful
        mongo_record = order.as_dict()

        self.mongo_data.add_data(order.order_id,
                                 mongo_record,
                                 allow_overwrite=True)
    def _put_order_on_stack_no_checking(self, order: Order):
        order_as_dict = order.as_dict()

        self.mongo_data.add_data(int(order.order_id), order_as_dict, allow_overwrite=False)