예제 #1
0
	def GET(self):
		"""
		This function dynamically renders storyScreen.html when the user types in the appropriate url or navigates to the page by interacting with the website.

		Parameters:
		None

		Returns:
		None
		"""
		playerStateObject = PlayerState() #Updating the player state
		story_ids = DBManager.getStoriesFromDB(playerStateObject.player_id) #Getting story data from the database and saving it to a variable
		story_titles=DBManager.getStoryTitles(playerStateObject.player_id) #Getting story titles from the database and saving it to a variable
		walk_level=DBManager.getStoryData()[0]
		kid_friendly=DBManager.getStoryData()[1]
		return self.render.storyScreen(story_ids, story_titles, walk_level, kid_friendly) #Using the above two variables to dynamically generate storyScreen.html