server/repository.py
changeset 5736 375819ec7d43
parent 5726 c3b99606644d
parent 5711 ea2538a3c622
child 5752 b0bb553e3be4
--- a/server/repository.py	Fri Jun 11 08:39:21 2010 +0200
+++ b/server/repository.py	Fri Jun 11 14:59:08 2010 +0200
@@ -92,7 +92,7 @@
                                 {'x': eidfrom, 'y': eidto})
     if card[1] in '1?':
         with security_enabled(session, read=False):
-            session.execute('DELETE X %sY WHERE Y eid %%(y)s, '
+            session.execute('DELETE X %s Y WHERE Y eid %%(y)s, '
                             'NOT X eid %%(x)s' % rtype,
                             {'x': eidfrom, 'y': eidto})