From 77656959433ed1b10316a6f6ec6ea06d7b0e8999 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 8 Sep 2023 20:31:13 -0400 Subject: [PATCH] Fix function calls for refresh cache --- app/classes/web/routes/api/crafty/exe_cache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/classes/web/routes/api/crafty/exe_cache.py b/app/classes/web/routes/api/crafty/exe_cache.py index f4dcc154..f27b8646 100644 --- a/app/classes/web/routes/api/crafty/exe_cache.py +++ b/app/classes/web/routes/api/crafty/exe_cache.py @@ -22,7 +22,7 @@ class ApiCraftyJarCacheIndexHandler(BaseApiHandler): 200, { "status": "ok", - "data": self.controller.server_jars.manual_refresh_cache(), + "data": self.controller.server_jars.get_serverjar_data(), }, ) @@ -43,11 +43,11 @@ class ApiCraftySteamCacheIndexHandler(BaseApiHandler): if not auth_data[4]["superuser"]: return self.finish_json(400, {"status": "error", "error": "NOT_AUTHORIZED"}) - self.controller.server_jars.manual_refresh_cache() + self.controller.server_jars.refresh_cache() self.finish_json( 200, { "status": "ok", - "data": self.controller.steam_apps.refresh_cache(), + "data": self.controller.steam_apps.fetch_cache(), }, )