Commits

tjama committed a2a7677

column filtering

  • Participants
  • Parent commits 72a653f

Comments (0)

Files changed (2)

 
 class MyDbConnection(object):
     def __init__(self):
-        self.connection = psycopg2.connect("dbname='django_db' user='django' host='109.74.206.67' password='ftUUVkem9mFFScQ8khKM'")
+        self.connection = psycopg2.connect("dbname='django_db' user='django' host='109.74.206.67' password='V0N4Pqzq13A0T78EKKpd'")
         #self.connection = psycopg2.connect("dbname='animu' user='animu' host='localhost' password='mudkipz666'")
 
     def get(self, query, *parameters):
             if self.get_current_user():
                 player = users[self.get_current_user().name]['player']
             else:
+                check_xsrf_cookie()
                 player = users[self.xsrf_token]['player']
             self.write(loader.load('questionnew.html').generate(player=player,game_id=game_id))
         except Exception, e:
             if self.get_current_user():
                 player = users[self.get_current_user().name]['player']
             else:
+                check_xsrf_cookie()
                 player = users[self.xsrf_token]['player']
             self.write(loader.load('pointsnew.html').generate(player=player,game_id=game_id))
         except Exception, e: