mirror of
https://github.com/Xevion/contest-assistant.git
synced 2025-12-10 02:06:48 -06:00
add guilds to database on connection if not already in database, remove old db.py, switch from query filter_by to simple get by primary key
This commit is contained in:
@@ -42,7 +42,7 @@ class Guild(Base):
|
||||
|
||||
active = Column(Boolean, default=True) # Whether or not the bot is active inside the given Guild. Used for better querying.
|
||||
joined = Column(DateTime, default=datetime.datetime.utcnow) # The initial join time for this bot to a particular Discord.
|
||||
last_joined = Column(DateTime, nullable=True) # The last time the bot joined this server.
|
||||
last_joined = Column(DateTime, default=datetime.datetime.utcnow) # The last time the bot joined this server.
|
||||
|
||||
|
||||
def check_not_finished(func):
|
||||
|
||||
Reference in New Issue
Block a user