th3-z / kf2-magicked-admin

:spider: Mutator-free management, statistics, and in-game bot for ranked Killing Floor 2 servers
https://kf2-ma.th3-z.xyz
MIT License
32 stars 7 forks source link

[FEATURE] Database update interval option #143

Closed th3-z closed 4 years ago

th3-z commented 4 years ago

Is your feature request related to a problem? Please describe. The database doesn't actually write at regular intervals at all, it just writes when its required to service a query. This is a issue for external tools because the contents of the DB can be far detached from the contents in memory.

Describe the solution you'd like Update the database at some regular interval. Additionally add a configuration option to change the update rate if needed. server.py has two functions that are used to update the db write_all_players, and write_game

Describe alternatives you've considered Realtime?

th3-z commented 4 years ago

Added in 96188b58aa18f96c1e0d4e4f33ca91b6167d632c