]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
The reflect option is deprecated. Use method instead.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 11 Aug 2013 14:58:39 +0000 (10:58 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 11 Aug 2013 14:58:39 +0000 (10:58 -0400)
xonstat/models.py

index c6d57909cd435ab94635a9dcee2b7711f212a46d..a4071843d73cb5c995fe64d5493df9005d98640c 100644 (file)
@@ -294,7 +294,8 @@ def initialize_db(engine=None):
     DBSession.configure(bind=engine)
     Base.metadata.bind = engine
     Base.metadata.create_all(engine)
-    MetaData = sqlalchemy.MetaData(bind=engine, reflect=True)
+    MetaData = sqlalchemy.MetaData(bind=engine)
+    MetaData.reflect()
 
     # assign all those tables to an object
     achievements_table = MetaData.tables['achievements']