Fix port reminder

Add Server time zone to details
This commit is contained in:
Andrew
2022-01-10 14:58:38 -05:00
parent 39ccb83008
commit 73c6c1b871
6 changed files with 24 additions and 7 deletions

View File

@ -183,6 +183,11 @@ class helper_servers:
with database.atomic():
Server_Stats.update(updating=value).where(Server_Stats.server_id == server_id).execute()
@staticmethod
def get_update_status(server_id):
waiting_start = Server_Stats.select().where(Server_Stats.server_id == server_id).get()
return waiting_start.waiting_start
@staticmethod
def set_first_run(server_id):
#Sets first run to false
@ -193,6 +198,11 @@ class helper_servers:
with database.atomic():
Server_Stats.update(first_run=False).where(Server_Stats.server_id == server_id).execute()
@staticmethod
def get_first_run(server_id):
first_run = Server_Stats.select().where(Server_Stats.server_id == server_id).get()
return first_run.first_run
@staticmethod
def get_TTL_without_player(server_id):
last_stat = Server_Stats.select().where(Server_Stats.server_id == server_id).order_by(Server_Stats.created.desc()).first()