changeset 202:c3c834cf1a6d

minor bug in sho preprints
author dwinter
date Thu, 27 Jun 2013 12:26:00 +0200
parents 81a8177ca354
children 9ce5816e89b2
files MPIWGStaff.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MPIWGStaff.py	Wed Jun 26 16:49:31 2013 +0200
+++ b/MPIWGStaff.py	Thu Jun 27 12:26:00 2013 +0200
@@ -832,9 +832,10 @@
                     if not ((entry[1] == publicationType) or  (entry[1] == typesLongShort.get(publicationType,''))) : 
                         #stimmt nicht dann weiter
                         continue;
-                    
-                pubs.append((selPub.escidocid,entry[0],entry[2],entry[3],entry[4]));
-                count+=1
+                  
+                if len(entry)>4:  
+                    pubs.append((selPub.escidocid,entry[0],entry[2],entry[3],entry[4]));
+                    count+=1
                 
             return pubs