Refactor Discord member statistics handling and remove unused components
- Removed the `guild_member_stats` table and related logic from the database and models, as well as the associated webapp routes and templates. - Cleaned up the Discord bot initialization by eliminating unused imports and functions related to member statistics. - Updated logging configuration in `run-web.py` to streamline the startup process and improve thread management.
This commit is contained in:
@@ -260,12 +260,3 @@ class ModShoutboxMessage(db.Model):
|
||||
message = db.Column(db.String(500), nullable=False)
|
||||
created_at = db.Column(db.DateTime, nullable=False, default=datetime.utcnow)
|
||||
|
||||
|
||||
class GuildMemberStats(db.Model):
|
||||
__tablename__ = 'guild_member_stats'
|
||||
guild_id = db.Column(db.String(64), primary_key=True)
|
||||
user_id = db.Column(db.String(64), primary_key=True)
|
||||
message_count = db.Column(db.Integer, nullable=False, default=0)
|
||||
voice_seconds = db.Column(db.Integer, nullable=False, default=0)
|
||||
updated_at = db.Column(db.DateTime, nullable=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user