[Commits] act-server branch master updated.

C. Scott Ananian cscott at laptop.org
Fri Dec 5 20:41:42 EST 2008


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "/home/cscott/public_git/act-server".

The branch, master has been updated
       via  938235e48e1dd12323abbd3382506fa180c882f3 (commit)
      from  44c3524973f7e48d9d9e5ce03dca58a54f1c4e90 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

 oats/stats/views.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 938235e48e1dd12323abbd3382506fa180c882f3
Author: C. Scott Ananian <cscott at laptop.org>
Date:   Fri Dec 5 20:41:47 2008 -0500

    Fix a python2.5-ism; the production servers run python2.4.

diff --git a/oats/stats/views.py b/oats/stats/views.py
index 052e432..2742f1a 100644
--- a/oats/stats/views.py
+++ b/oats/stats/views.py
@@ -125,8 +125,12 @@ def _sc_key(stat_type, build_hashes, groups, one_day):
     import sha
     # munge the build hashes together.
     bh = ':'.join(sorted(build_hashes))
+    if one_day:
+        duration = 'H'
+    else:
+        duration = 'D'
     ckey = '%s%s|%s[' % \
-           (stat_type, ('H' if one_day else 'D'), sha.new(bh).hexdigest())
+           (stat_type, duration, sha.new(bh).hexdigest())
     if groups[1] is not None:
         ckey +=  (':'.join(groups[0]))
     ckey += ']'
-----------------------------------------------------------------------


--
/home/cscott/public_git/act-server


More information about the Commits mailing list