diff --git a/app/classes/shared/models.py b/app/classes/shared/models.py index a74bc7af..bafe6daf 100644 --- a/app/classes/shared/models.py +++ b/app/classes/shared/models.py @@ -244,6 +244,10 @@ class db_shortcuts: query = Host_Stats.select().order_by(Host_Stats.id.desc()).get() return model_to_dict(query) + def get_all_users(self): + query = Users.select() + return query + def get_unactioned_commands(self): query = Commands.select().where(Commands.executed == 0) return self.return_rows(query) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index d14d6bcc..fa602545 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -112,6 +112,10 @@ class PanelHandler(BaseHandler): # template = "panel/server_details.html" template = "panel/server_{subpage}.html".format(subpage=subpage) + elif page == 'panel_config': + page_data['users'] = db_helper.get_all_users() + # print(page_data['users']) + template = "panel/panel_config.html" self.render( template, diff --git a/app/config/serverjars.json b/app/config/serverjars.json index f8f4d04f..36ddf154 100644 --- a/app/config/serverjars.json +++ b/app/config/serverjars.json @@ -1,5 +1,5 @@ { - "last_refreshed": "10/07/2020, 09:09:10", + "last_refreshed": "12/06/2020, 13:33:10", "servers": { "nukkitx": [ "1.14" @@ -68,6 +68,7 @@ "1.8" ], "bukkit": [ + "1.16.4", "1.16.3", "1.16.2", "1.16.1", @@ -97,6 +98,7 @@ "1.8" ], "paper": [ + "1.16.4", "1.16.3", "1.16.2", "1.16.1", @@ -120,6 +122,7 @@ "1.8.8" ], "spigot": [ + "1.16.4", "1.16.3", "1.16.2", "1.16.1", @@ -148,6 +151,11 @@ "1.8.8" ], "snapshot": [ + "1.1720w49a", + "1.1720w48a", + "1.1720w46a", + "1.1720w45a", + "1.17", "1.16pre8", "1.16pre7", "1.16pre6", @@ -157,8 +165,10 @@ "1.16pre2", "1.16pre1", "1.1620w30a", - "1.1620w29a", "1.1620w28a", + "1.161.16.3rc1", + "1.1620w29a", + "1.16rc1", "1.1620w27a", "1.1620w22a", "1.1620w21a", @@ -166,29 +176,31 @@ "1.1620w20a", "1.1620w19a", "1.1620w18a", + "1.16.4rc1", + "1.1620w17a", "1.1620w16a", - "1.1620w10a", - "1.16.2rc2", - "1.1620w11a", - "1.1620w09a", - "1.1620w08a", - "1.1620w07a", - "1.16.3rc1", - "1.16.2rc1", + "1.1620w15a", "1.1620w14a", "1.1620w14infinite", "1.1620w13b", "1.1620w13a", "1.1620w12a", - "1.161.16.3rc1", - "1.16rc1", - "1.1620w17a", - "1.1620w15a", + "1.1620w11a", + "1.1620w10a", + "1.1620w09a", + "1.1620w08a", + "1.1620w07a", "1.1620w06a", + "1.16.4pre2", + "1.16.3rc1", + "1.16.4pre1", + "1.16.4", "1.16.3", "1.16.2pre3", "1.16.2pre2", "1.16.2pre1", + "1.16.2rc2", + "1.16.2rc1", "1.16.2", "1.161.16.1", "1.16.1", @@ -274,6 +286,7 @@ "1.14.1pre1" ], "vanilla": [ + "1.16.4", "1.16.3", "1.16.2", "1.16.1", diff --git a/app/frontend/templates/notify.html b/app/frontend/templates/notify.html index 67e2d493..fd147772 100644 --- a/app/frontend/templates/notify.html +++ b/app/frontend/templates/notify.html @@ -1,6 +1,6 @@