[Pypi-checkins] r951 - trunk/pypi

martin.von.loewis python-checkins at python.org
Mon Aug 22 12:02:32 CEST 2011


Author: martin.von.loewis
Date: Mon Aug 22 12:02:32 2011
New Revision: 951

Modified:
   trunk/pypi/store.py
Log:
Fix journal update.


Modified: trunk/pypi/store.py
==============================================================================
--- trunk/pypi/store.py	(original)
+++ trunk/pypi/store.py	Mon Aug 22 12:02:32 2011
@@ -1441,12 +1441,12 @@
                      (user,))
         # point all journal entries to the "deleted user"
         safe_execute(cursor,
-                     '''update journals set name='deleted user' where name=%s''',
+                     '''update journals set submitted_by='deleted user' where submitted_by=%s''',
                      (user,))
         # delete all cookies
         safe_execute(cursor,
                      '''delete from cookies where name=%s''',
-                     (user,))       
+                     (user,))
         # every other reference should either be cascading, 
         # or it's a bug to break it
 


More information about the Pypi-checkins mailing list