]> scripts.mit.edu Git - wizard.git/commitdiff
Fix broken Wordpress URL retrieval code.
authorEdward Z. Yang <ezyang@mit.edu>
Tue, 9 Mar 2010 22:48:51 +0000 (17:48 -0500)
committerEdward Z. Yang <ezyang@mit.edu>
Tue, 9 Mar 2010 22:48:51 +0000 (17:48 -0500)
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
wizard/app/wordpress.py

index 13eb5a8e4d230bea0f61a7f0643e81f60d8d9198..bd82ee1fa4a12a6595c593f91ab2c55d1ecc03c0 100644 (file)
@@ -40,7 +40,8 @@ class Application(app.Application):
         try:
             meta = sql.connect(deployment.dsn)
             wp_options = meta.tables["wp_options"]
-            return wp_options.select('option_value').where(wp_options.c.option_name == 'home')
+            query = wp_options.select(wp_options.c.option_name == 'home')
+            return query.execute().fetchone()['option_value']
         except sqlalchemy.exc.OperationalError:
             return None
     def download(self, version):