Skip to content

Commit

Permalink
Temporary fix for possible paths that start with "/".
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed May 27, 2010
1 parent 2ab7fa2 commit 78699e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracstats/web_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def _process(self, req, cursor, where, data):
slash = path.find('/')
if slash < 0:
continue
project = path[:slash]
project = path[:slash] or 'None'
try:
d[project] += 1
except KeyError:
Expand Down Expand Up @@ -615,7 +615,7 @@ def _process_code(self, req, cursor, where, data):
slash = path.find('/')
if slash < 0:
continue
project = path[:slash]
project = path[:slash] or 'None'
try:
d[project][0] += 1
d[project][1].add(rev)
Expand Down

0 comments on commit 78699e9

Please sign in to comment.