From dd00747378b4c9f9833bc01f75137cbb4f3511d9 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 11 Aug 2013 10:58:39 -0400 Subject: [PATCH] The reflect option is deprecated. Use method instead. --- xonstat/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'] -- 2.39.2