Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tracstats: fix version check for time "hack".

  • Loading branch information...
commit ff2a8817860cc65aa57b87ec4146f2788a09c9c1 1 parent 03263f4
John Benediktsson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tracstats/
2  tracstats/
@@ -24,7 +24,7 @@
# In version 0.12, the time field in the database was changed
# from seconds to microseconds. This allows us to support both
# 0.11 and 0.12 with the same piece of code. It could be prettier.
-if trac.__version__.startswith('0.12'):
+if any(trac.__version__.startswith(s) for s in ('0.12','0.13','1.')):
SECONDS = 'time / 1000000'
SECONDS = 'time'
Please sign in to comment.
Something went wrong with that request. Please try again.