Skip to content
This repository
Browse code

tracstats: additional version check.

  • Loading branch information...
commit b423c7b8a732da78ef70e3ad052e7454e4025a2b 1 parent ff2a881
John Benediktsson authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 tracstats/web_ui.py
4 tracstats/web_ui.py
@@ -33,14 +33,14 @@
33 33 # repositories. Where the "rev" field was previously unique,
34 34 # the "(repos,rev)" fields are now unique. Doing it this way
35 35 # is a big performance boost.
36   -if trac.__version__.startswith('0.12'):
  36 +if any(trac.__version__.startswith(s) for s in ('0.12','0.13','1.')):
37 37 USING = "on r.repos = nc.repos and r.rev = nc.rev"
38 38 else:
39 39 USING = "using (rev)"
40 40
41 41 # In version 0.12, support for multiple repositories was
42 42 # added. We use the reponame to generate proper changeset links.
43   -if trac.__version__.startswith('0.12'):
  43 +if any(trac.__version__.startswith(s) for s in ('0.12','0.13','1.')):
44 44 REPOS = 'r.repos'
45 45 else:
46 46 REPOS = "'' as repos"

0 comments on commit b423c7b

Please sign in to comment.
Something went wrong with that request. Please try again.