Skip to content
Snippets Groups Projects
Commit a851056b authored by Martin Mareš's avatar Martin Mareš
Browse files

Logování: Drobná vylepšení zpráv

parent b3b2fe8d
No related branches found
No related tags found
No related merge requests found
......@@ -368,7 +368,7 @@ class ParticipantsActionForm(FlaskForm):
if self.remove_participation.data:
sess.delete(pion)
app.logger.info(f"Participation of user {u.user_id} in contest {pion.contest} removed")
app.logger.info(f"Účast uživatele #{u.user_id} v soutěži #{pion.contest} zrušena")
mo.util.log(
type=db.LogType.participant,
what=u.user_id,
......@@ -382,11 +382,11 @@ class ParticipantsActionForm(FlaskForm):
assert participation_place
pion.place_id = participation_place.place_id
elif self.set_contest.data:
pion.contest_id = contest.contest_id
pion.contest_id = assert_not_none(contest).contest_id
if sess.is_modified(pion):
changes = db.get_object_changes(pion)
app.logger.info(f"Participation of user {u.user_id} modified, changes: {changes}")
app.logger.info(f"Účast uživatele #{u.user_id} upravena, změny: {changes}")
mo.util.log(
type=db.LogType.participant,
what=u.user_id,
......@@ -1622,6 +1622,7 @@ def org_contest_advance(ct_id: int):
what=pp.user_id,
details={
'action': 'add-to-contest',
'reason': 'advance',
# Tady nemůžeme použít obvyklé row2dict, neboť nemáme v ruce ORMový objekt
'new': {
'contest_id': contest.contest_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment