SF.net SVN: gar:[23361] csw/mgar/gar/v2/lib/python/stale_packages_report.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Apr 6 14:45:22 CEST 2014


Revision: 23361
          http://sourceforge.net/p/gar/code/23361
Author:   wahwah
Date:     2014-04-06 12:45:21 +0000 (Sun, 06 Apr 2014)
Log Message:
-----------
stale-packages-report: Lighter colors

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/stale_packages_report.py

Modified: csw/mgar/gar/v2/lib/python/stale_packages_report.py
===================================================================
--- csw/mgar/gar/v2/lib/python/stale_packages_report.py	2014-04-06 12:17:14 UTC (rev 23360)
+++ csw/mgar/gar/v2/lib/python/stale_packages_report.py	2014-04-06 12:45:21 UTC (rev 23361)
@@ -17,6 +17,8 @@
 INACTIVE_MAINTAINER_CUTOFF = 2
 STALE_PACKAGE_CUTOFF = 4
 REMOVE_SUGGESTION_CUTOFF = 4
+STALE_FROM_COLOR = '#FFDDBB'
+STALE_TO_COLOR = '#F995A0'
 REPORT_TMPL = u"""<html>
 <head>
   <title>Packages to rebuild</title>
@@ -228,8 +230,8 @@
       pkgs[catalogname]['age'] = years
       after_cutoff = stale_pkg_cutoff - pkgs[catalogname]['date'] 
       frac = after_cutoff.days / float(365 * 4)
-      # frac = age.days / (365 * 4)
-      pkgs[catalogname]['color'] = IntermediateColor('#FFCC00', '#F995A0', frac)
+      pkgs[catalogname]['color'] = IntermediateColor(
+          STALE_FROM_COLOR, STALE_TO_COLOR, frac)
       
       # Package dropping logic
       entry = pkgs[catalogname]

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list