[Debtags-commits] [svn] r2232 - cgi-bin

Erich Schubert erich at alioth.debian.org
Wed Jan 3 20:53:24 CET 2007


Author: erich
Date: Wed Jan  3 20:53:23 2007
New Revision: 2232

Modified:
   cgi-bin/rdf
Log:
fix rdf caching again... argh.

Modified: cgi-bin/rdf
==============================================================================
--- cgi-bin/rdf	(original)
+++ cgi-bin/rdf	Wed Jan  3 20:53:23 2007
@@ -18,12 +18,12 @@
 
 result = None
 
-if os.stat(cachefile).st_mtime - cache_expiry < time.time():
+if os.stat(cachefile).st_mtime + cache_expiry > time.time():
 	f = file(cachefile,"r")
 	result = f.read()
 	f.close()
 
-if not result or len(result) < 0:
+if not result or len(result) < 1:
 	# Prepare RDF
 	namespaces = {
 		"xmlns:rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",



More information about the Debtags-commits mailing list