Open Paillat-dev opened 1 month ago
Session cannot be stored, it should be used w async with
. Or some sort
Hmm, well utils/database.py
already has get_db_session
async context-manager function, maybe we should just use that each time instead of just once in __main__.py
Yeah because I believe the __aexit__
cleans up stuff, and does rollbacks and things like this
Sadly, this we didn't manage to fix this in time, however, it shouldn't affect the bot's functionalities, since we handle the sql errors ourselves, this doesn't propagate up, it's just that the handling isn't ideal.
There is a post-deadline fix for this that was submitted in #75, it will not be merged into main as that would violate the code-jam's rules, however, I will leave the issue & PR opened just for reference.
Marked as priority medium, as sql errors should not happen - all sql errors happened while developement and were mitigated before they would hit the user.