ppigazzini
ppigazzini
No. That bugfixed code is not used anymore, all "group:admins" are longitme dropped from the `users` collection. The dave's snippet of code crashes simply because it checks a not existent...
Added the "blocked" key to all documents in the `users` collection. Dropped the not used "group:stats" too. ```python #!/usr/bin/env python3 from fishtest.rundb import RunDb def update_users(): rundb = RunDb() u_block=...
DEV updated, it seems to work. Late here, I will test/review tomorrow morning.
The PR worked in my tests, but there is an architectural problem, though. For a document in the `users` collection the "groups" key is a list with zero to many...
I will help with the multi group approach. BTW this code was mostly new for me, and there are some things that I need to study :)
This is a first improvement, the code should still work for a user with more than one group. A proper solution needs a page to show the user groups, to...
cc @noobpwnftw
Smart suggestion.
The try added in this PR is fine, this 3 level try is ugly. https://github.com/glinscott/fishtest/blob/599898efbd0488741eb67eb413d7daff64f32185/worker/games.py#L1025-L1043 IMO this should work, dropping one nested try and dropping a bare except. ```python finally:...
Triggered the workers update, thank you @vdbergh :)