Skip to content

Commit

Permalink
Use first 12 chars of revision when filtering for first build per rev
Browse files Browse the repository at this point in the history
  • Loading branch information
William Lachance committed Sep 20, 2011
1 parent 2698fd7 commit c63eb43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dashboard/server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def GET(self, mode):
filtered_summaries = []
revisions_processed = {}
for summary in summaries:
rev = summary['revision'][0:8] # sometimes we only have first 8 chars
rev = summary['revision'][0:12] # sometimes we only have first 12 chars
if not revisions_processed.get(rev):
filtered_summaries.append(summary)
revisions_processed[rev] = 1
Expand Down

0 comments on commit c63eb43

Please sign in to comment.