def update_expenditure_entry(database, entry):
    """Update a record of a expenditure report in the provided database.

    @param db: The MongoDB database to operate on. The expenditures collection
        will be used from this database.
    @type db: pymongo.database.Database
    @param entry: The entry to insert into the database, updating the entry with
        the same recordID if one exists.
    @type entry: dict
    """
    entry = clean_entry(entry)
    database.expenditures.update(
        {'recordID': entry['recordID']},
        {'$set': entry},
        upsert=True
    )
def update_expenditure_entry ( database , entry ) : entry = clean_entry ( entry ) database . expenditures . update ( { 'recordID' : entry [ 'recordID' ] } , { '$set' : entry } , upsert = True )
Update a record of a expenditure report in the provided database.

    @param db: The MongoDB database to operate on. The expenditures collection
        will be used from this database.
    @type db: pymongo.database.Database
    @param entry: The entry to insert into the database, updating the entry with
        the same recordID if one exists.
    @type entry: dict