changeset 203:9ce5816e89b2

faeng priority fehler ab bei biblio
author dwinter
date Thu, 27 Jun 2013 13:03:04 +0200
parents c3c834cf1a6d
children 670b3507509d
files MPIWGStaff.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MPIWGStaff.py	Thu Jun 27 12:26:00 2013 +0200
+++ b/MPIWGStaff.py	Thu Jun 27 13:03:04 2013 +0200
@@ -938,6 +938,12 @@
         try:
             query="update pubmanbiblio set priority=%s where escidocid=%s and lower(key_main)=%s"
             
+            try:
+                x=int(value)
+            except:
+                logging.error("priority not a number")
+                return
+            
             self.executeZSQL(query,[value,escidocid,self.getKey().lower()]);
            
         except: