changeset 180:c88f216f1830

Remove hardcoded administrative database name.
author Daniele Nicolodi <daniele@grinta.net>
date Tue, 08 Nov 2011 11:04:15 +0100
parents 5226ceb52b92
children 342125a26ff1
files src/ltpdarepo/views/users.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ltpdarepo/views/users.py	Mon Nov 07 20:21:32 2011 +0100
+++ b/src/ltpdarepo/views/users.py	Tue Nov 08 11:04:15 2011 +0100
@@ -134,7 +134,7 @@
     curs.execute("""SELECT db_name,
                       IFNULL(Select_priv, 'N'), IFNULL(Insert_priv, 'N'),
                       IFNULL(Update_priv, 'N'), IFNULL(Delete_priv, 'N')
-                    FROM ltpda.available_dbs
+                    FROM available_dbs
                     LEFT JOIN mysql.db ON db_name=Db AND User=%s
                     ORDER BY db_name""", username)
     privs = OrderedDict()