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