def _log_bonus_taco(user_id, date): persistence.save_log({ 'giving_user': None, 'receiver_user': user_id, 'n_tacos': 1, 'type': 'bonus', 'date': date })
def _log_taco_transaction(giver_id, reciver_id, amount, reaction, date): persistence.save_log({ 'giving_user': giver_id, 'receiver_user': reciver_id, 'n_tacos': amount, 'type': 'reaction' if reaction else 'message', 'date': date })