예제 #1
0
	def GET(self):
		"""
		This function renders homeScreen.html and checks to see if player data exists in the database. If not, this is a new player and new data is inserted into the database.
		If there is player data then the existing player state is updated.

		Parameters:
		None

		Returns:
		None
		"""
		#if not DBManager.checkforExistingPlayer(web.ctx.ip): #Checking to see if current player has played before
		DBManager.getPlayerIP(web.ctx.ip) #If the above is true save the players ip address in the database
		playerStateObject = PlayerState() #Updating the player state
		return self.render.homeScreen() #Render homeScreen.html