def store_available_atm_currency_notes(curr: str, notes: dict): """ Store certain currency available notes in DB :param curr: :param notes: """ prepared_notes = {str(x): notes[x] for x in notes } # once Mongo doesn't support int as dict keys Currency.objects(name=curr).update_one(notes=prepared_notes)