Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vyhodnocení modulu selže při opakovaném zadání trofeje #162

Open
esoadamo opened this issue Jul 19, 2022 · 0 comments
Open

Vyhodnocení modulu selže při opakovaném zadání trofeje #162

esoadamo opened this issue Jul 19, 2022 · 0 comments
Labels

Comments

@esoadamo
Copy link
Member

Pokud uživatel zadá v modulu dvakrát stejnou odpověď, za kterou má dostat trofej, modul spadne. Problém je v duplikaci primárního klíče v DB.

Úloha: Debugger v Naskoč - src , web

Stacktrace:

 [2022-07-18 21:09:45] [IP ADDRESS] [POST] [500 Internal Server Error] /modules/53/submit
 [2022-07-18 21:09:45] Traceback (most recent call last):
 [2022-07-18 21:09:45]   File "/root/naskoc-web-backend/ksi-py3-venv/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
 [2022-07-18 21:09:45]     self.dialect.do_execute(
 [2022-07-18 21:09:45]   File "/root/naskoc-web-backend/ksi-py3-venv/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
 [2022-07-18 21:09:45]     cursor.execute(statement, parameters)
 [2022-07-18 21:09:45]   File "/root/naskoc-web-backend/ksi-py3-venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
 [2022-07-18 21:09:45]     res = self._query(query)
 [2022-07-18 21:09:45]   File "/root/naskoc-web-backend/ksi-py3-venv/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
 [2022-07-18 21:09:45]     db.query(q)
 [2022-07-18 21:09:45]   File "/root/naskoc-web-backend/ksi-py3-venv/lib/python3.9/site-packages/MySQLdb/connections.py", line 259, in query
 [2022-07-18 21:09:45]     _mysql.connection.query(self, query)
 [2022-07-18 21:09:45] MySQLdb._exceptions.IntegrityError: (1062, "Duplicate entry '[USER_ID]-2' for key 'PRIMARY'")
@esoadamo esoadamo added the bug label Jul 19, 2022
@esoadamo esoadamo moved this to Todo in Hackaton 22 Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant