Comments (2)
We have a few options to accomplish this.
- Add another column to each dataframe for
guild
- Change
match_history
anduser_status
to two Pythondict
s fromint
->pandas.DataFrame
.- This might be the easiest option of all. We will simply have to ensure that the dataframes exist
for the desired guild, and then we can reference them withself.players[guild]
orself.events[guild]
. - This will also mean that we will have to think of a proper naming scheme for the pickle files.
I am thinking they should beGUILD-players.pickle
andGUILD-events.pickle
and they should
go in some dir which is configurable in the global configuration.
- This might be the easiest option of all. We will simply have to ensure that the dataframes exist
from elosensei.
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.
from elosensei.
Related Issues (20)
- Add score adjustment events and comment field HOT 2
- Add integer event IDs for convenience HOT 1
- Add Kurusa's favorite gif HOT 1
- Serialization efficiency considerations HOT 1
- Update to discord.py 1.0.0 HOT 1
- Use server nick instead of discord username in database
- Prevent adding matches in the future HOT 1
- Timezone support HOT 1
- Add command for showing matches HOT 1
- Automatically change users' roles to roles with their rank name HOT 1
- Recall players by id
- Add moderation features (?)
- Add delta mask event HOT 2
- Add edit command HOT 1
- Add delete command HOT 1
- Properly throw argparse and discordpy commands errors at the user
- Ensure there are no race conditions involving match_history and user_status HOT 1
- Make sure events inserted before others cause a recalculation of all elo HOT 1
- Round title of get_player_card HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elosensei.