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

merge-users umí přenášet i přihlášky do ročníku

Closes #286.
parent c903a852
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,9 @@ sess.flush()
conn.execute(db.Log.__table__.update().where(db.Log.changed_by == suid).values(changed_by=duid))
conn.execute(db.Participant.__table__.delete().where(db.Participant.user_id == suid))
conn.execute(db.Participant.__table__.update().where(db.Participant.user_id == suid).values(user_id=duid))
if test_contest:
conn.execute(db.Participation.__table__.delete().where(and_(db.Participation.user_id == suid, db.Participation.contest_id == test_contest_id)))
conn.execute(db.Participation.__table__.update().where(db.Participation.user_id == suid).values(user_id=duid))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment