Revert DB info on timeout
Opened this issue · 1 comments
m5136771 commented
Currently, the docs retrieved in practice sessions are updated as the command runs.
When a timeout occurs, there is still an attempt logged in the db, but with missing or incorrect information. This will mess up future practice sessions.
- Fix DB read/writes in cases of timeouts or errors (look at saving doc only once at the very end).
- Clean DB of previous incorrect entries.
m5136771 commented