]> git.ipfire.org Git - people/shoehn/ipfire.org.git/commitdiff
Fix display of builds that were not put in right categories.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Jan 2010 16:46:48 +0000 (17:46 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Jan 2010 16:46:48 +0000 (17:46 +0100)
www/webapp/handlers.py

index 968068c06f666b52c86908f79c1bfac981dcd14f..e2cb209a21bbea727fe0811aef76aa323a3da198 100644 (file)
@@ -167,9 +167,9 @@ class BuildHandler(BaseHandler):
                }
 
                for build in builds.find():
-                       if (time.time() - float(build.get("date"))) < 12*60:
+                       if (time.time() - float(build.get("date"))) < 12*60*60:
                                self.builds["<12h"].append(build)
-                       elif (time.time() - float(build.get("date"))) < 24*60:
+                       elif (time.time() - float(build.get("date"))) < 24*60*60:
                                self.builds[">12h"].append(build)
                        else:
                                self.builds[">24h"].append(build)