From: Ant Zucaro Date: Sun, 11 Aug 2013 14:58:39 +0000 (-0400) Subject: The reflect option is deprecated. Use method instead. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dd00747378b4c9f9833bc01f75137cbb4f3511d9;p=xonotic%2Fxonstat.git The reflect option is deprecated. Use method instead. --- diff --git a/xonstat/models.py b/xonstat/models.py index c6d5790..a407184 100644 --- a/xonstat/models.py +++ b/xonstat/models.py @@ -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']