rename game_api.py to game_functions.py
This commit is contained in:
		
							parent
							
								
									e2301ec1e7
								
							
						
					
					
						commit
						4da6d75913
					
				| @ -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  | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user