From 4da6d7591379b14873820f230799468e689a34e9 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Tue, 29 Nov 2022 09:09:46 +0100 Subject: [PATCH] rename game_api.py to game_functions.py --- truthseeker/{game_api.py => game_functions.py} | 0 truthseeker/routes_api.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename truthseeker/{game_api.py => game_functions.py} (100%) diff --git a/truthseeker/game_api.py b/truthseeker/game_functions.py similarity index 100% rename from truthseeker/game_api.py rename to truthseeker/game_functions.py diff --git a/truthseeker/routes_api.py b/truthseeker/routes_api.py index b04f1a5..c67b9e7 100644 --- a/truthseeker/routes_api.py +++ b/truthseeker/routes_api.py @@ -1,6 +1,6 @@ import flask -from truthseeker import game_api +from truthseeker import game_functions api_routes = flask.Blueprint("api", __name__) @@ -8,7 +8,7 @@ api_routes = flask.Blueprint("api", __name__) def create_game(): response = {} response["status"] = "ok" - response["gameId"] = game_api.create_game().id + response["gameId"] = game_functions.create_game().id return response @api_routes.route("/getGameInfo") @@ -18,7 +18,7 @@ def get_game_info(): if gameid == None: response["status"] = "No 'gameid' argument" return response - game = game_api.get_game_info(gameid) + game = game_functions.get_game_info(gameid) if game == None: response["status"] = "Game {} does not exist".format(gameid) return response