[cpif] r107 - trunk/backend

svn at argo.es svn at argo.es
Thu May 24 20:32:08 CEST 2007


Author: jcea
Date: Thu May 24 20:32:07 2007
New Revision: 107

Log:
afinamos...

Modified:
   trunk/backend/database.py

Modified: trunk/backend/database.py
==============================================================================
--- trunk/backend/database.py	(original)
+++ trunk/backend/database.py	Thu May 24 20:32:07 2007
@@ -244,7 +244,10 @@
     if not i : break
 
   finished=posicion>=hilo["num_mensajes"]
-  if (u["punto de lectura"].get(hilo_num,0)<msg_num) and (root["punto_de_lectura_global"][hilo_num]<msg_num) :
+  pl=u["punto de lectura"].get(hilo_num,0)
+  if not pl : # Nunca hemos visitado ese hilo, o hace mucho que no cambia
+    pl=root["punto_de_lectura_global"][hilo_num]
+  if pl<msg_num :
     u["punto de lectura"][hilo_num]=msg_num
     nl=u["punto de lectura no leidos"].get(hilo_num)
     if nl and (nl<=msg_num) :



More information about the cpif mailing list