def end_turn(turn): """ Ends turn and calls log """ curr_user = turn.character.fetch().user new_event = Event() new_event.event_type = "Turn end" new_event.description = f"{curr_user} made his play" new_event.event_date = str(datetime.now()) new_event.save()
def init_turn(turn): """ Inits turn and calls log. Dumbass """ curr_user = turn.character.fetch().user new_event = Event() new_event.event_type = "Turn start" new_event.description = f"{curr_user} is now playing" new_event.event_date = str(datetime.now()) new_event.save()