def get(self): id = self.request.get("id") logging.warning(id) q = models.check_if_user_profile_exists(id) if q == []: models.create_profile(id) page_params = { 'user_email': get_user_email(), 'login_url': users.create_login_url(), 'logout_url': users.create_logout_url('/'), "list": models.obtain_events(), 'user_id': get_user_id(), 'profile': models.get_user_profile(id), } render_template(self, 'profile.html', page_params)
def get(self): id = get_user_id() # location_list = "" q = models.check_if_user_profile_exists(id) # if q != []: # location_list = models.get_by_location(q[0].location) page_params = { 'user_email': get_user_email(), 'login_url': users.create_login_url(), 'logout_url': users.create_logout_url('/'), "list": models.sort_by_votes(), "featured": models.get_featured(), # "location_list": location_list, "recent_events": models.get_recent_events(), "user_id": id, } render_template(self, 'frontPage.html', page_params)
def get(self): id = get_user_id() # location_list = "" q = models.check_if_user_profile_exists(id) #if q != []: # location_list = models.get_by_location(q[0].location) page_params = { 'user_email': get_user_email(), 'login_url': users.create_login_url(), 'logout_url': users.create_logout_url('/'), "list": models.sort_by_votes(), "featured": models.get_featured(), #"location_list": location_list, "recent_events": models.get_recent_events(), "user_id": id, } render_template(self, '_base.html', page_params)