Open lekro opened 6 years ago
On second thought, the players and events dataframes can be simply loaded from listing the contents of the data directory. This can be all done at init time. But if a particular guild doesn't have a set of dataframes, that has to be done at runtime.
We can have a dict of guild -> tuples instead, where tuple is (lock, events, users)? But tuples are immutable so we'd have to make a new tuple when saving things.
We have a few options to accomplish this.
guild
match_history
anduser_status
to two Pythondict
s fromint
->pandas.DataFrame
.self.players[guild]
orself.events[guild]
.GUILD-players.pickle
andGUILD-events.pickle
and they should go in some dir which is configurable in the global configuration.