[Pypi-checkins] r823 - trunk/pypi

georg.brandl python-checkins at python.org
Sun Jul 25 12:21:30 CEST 2010


Author: georg.brandl
Date: Sun Jul 25 12:21:30 2010
New Revision: 823

Modified:
   trunk/pypi/store.py
Log:
The rego_otk table has no "user" column but a "name" column.

Modified: trunk/pypi/store.py
==============================================================================
--- trunk/pypi/store.py	(original)
+++ trunk/pypi/store.py	Sun Jul 25 12:21:30 2010
@@ -1489,7 +1489,7 @@
         '''Find a user by its otk.
         '''
         cursor = self.get_cursor()
-        safe_execute(cursor, "select user from rego_otk where otk=%s", (otk, ))
+        safe_execute(cursor, "select name from rego_otk where otk=%s", (otk, ))
         res = cursor.fetchone()
         if res is None:
             return ''


More information about the Pypi-checkins mailing list