예제 #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)
예제 #2
0
    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)