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

Erich Schubert erich at alioth.debian.org
Sun Nov 19 19:15:06 CET 2006


Author: erich
Date: Sun Nov 19 19:15:06 2006
New Revision: 2126

Modified:
   cgi-bin/erich
Log:
fix stupid typo, which made the special::not-yet-tagged pages non-useful

Modified: cgi-bin/erich
==============================================================================
--- cgi-bin/erich	(original)
+++ cgi-bin/erich	Sun Nov 19 19:15:06 2006
@@ -39,7 +39,7 @@
 	totalpkgs = 0
 	for pkg, ts, desc in srv.resultpkgs():
 		totalpkgs += 1
-		if (len(query)>0 and query == tags):
+		if (len(query)>0 and query == ts):
 			pkgs[pkg] = desc
 		else:
 			ppkgs[pkg] = desc
@@ -50,7 +50,8 @@
 			fs.add(tag.split("::")[0])
 		for facet in fs:
 			facets[facet] = facets.get(facet,0) + 1
-	pkgs.update(ppkgs)
+	if totalpkgs < 50:
+		pkgs.update(ppkgs)
 
 	# prepare buffer for both compression and caching
 	buf = cStringIO.StringIO()



More information about the Debtags-commits mailing list