ClamSageCaleb / UNCC-SIX-MANS

The official 6 mans bot for the UNC Charlotte Rocket League Community
https://clamsagecaleb.github.io/UNCC-SIX-MANS/
MIT License
2 stars 0 forks source link

TinyDb Custom Doc Id Implemenation #18

Closed mattwells19 closed 4 years ago

mattwells19 commented 4 years ago

When I first switched everything over to using TinyDb, there was no way to specify a custom doc id for entries in the tables. Since then, that feature was released. This PR uses the Discord ID of everyone to key their entry in each of the tables. This makes queries much easier and even a little quicker.

Also made AWS.writeRemoteLeaderboard a thread in Leaderboard.py that allows the function to return without having to wait for the remote leaderboard to be updated.

Also other small bug fixes I noticed.