Example #1
0
def update_by_fields_dict(done_trad: DoneTrade, dic: dict):
    done_trad.update(**dic)
Example #2
0
def update(done_trade: DoneTrade):
    dic = filter_dict_by_id(done_trade.to_mongo().to_dict())
    done_trade.update(**dic)
Example #3
0
def update_by_field(done_trad: DoneTrade, field_name: str, value):
    done_trad.update(**{field_name: value})