Show More
@@ -146,10 +146,8 b' def get_commits_stats(repo_name, ts_min_' | |||||
146 | datadict["added"] += len(cs.added) |
|
146 | datadict["added"] += len(cs.added) | |
147 | datadict["changed"] += len(cs.changed) |
|
147 | datadict["changed"] += len(cs.changed) | |
148 | datadict["removed"] += len(cs.removed) |
|
148 | datadict["removed"] += len(cs.removed) | |
149 | #print datadict |
|
|||
150 |
|
149 | |||
151 | else: |
|
150 | else: | |
152 | #print 'ELSE !!!!' |
|
|||
153 | if k >= ts_min_y and k <= ts_max_y or skip_date_limit: |
|
151 | if k >= ts_min_y and k <= ts_max_y or skip_date_limit: | |
154 |
|
152 | |||
155 | datadict = {"time":k, |
|
153 | datadict = {"time":k, | |
@@ -162,7 +160,6 b' def get_commits_stats(repo_name, ts_min_' | |||||
162 | [author_key_cleaner(cs.author)]['data'].append(datadict) |
|
160 | [author_key_cleaner(cs.author)]['data'].append(datadict) | |
163 |
|
161 | |||
164 | else: |
|
162 | else: | |
165 | #print k, 'nokey ADDING' |
|
|||
166 | if k >= ts_min_y and k <= ts_max_y or skip_date_limit: |
|
163 | if k >= ts_min_y and k <= ts_max_y or skip_date_limit: | |
167 | commits_by_day_author_aggregate[author_key_cleaner(cs.author)] = { |
|
164 | commits_by_day_author_aggregate[author_key_cleaner(cs.author)] = { | |
168 | "label":author_key_cleaner(cs.author), |
|
165 | "label":author_key_cleaner(cs.author), | |
@@ -175,7 +172,7 b' def get_commits_stats(repo_name, ts_min_' | |||||
175 | "schema":["commits"], |
|
172 | "schema":["commits"], | |
176 | } |
|
173 | } | |
177 |
|
174 | |||
178 |
|
|
175 | #gather all data by day | |
179 | if commits_by_day_aggregate.has_key(k): |
|
176 | if commits_by_day_aggregate.has_key(k): | |
180 | commits_by_day_aggregate[k] += 1 |
|
177 | commits_by_day_aggregate[k] += 1 | |
181 | else: |
|
178 | else: |
@@ -31,7 +31,7 b'' | |||||
31 | <label for="repo_name">${_('Name')}:</label> |
|
31 | <label for="repo_name">${_('Name')}:</label> | |
32 | </div> |
|
32 | </div> | |
33 | <div class="input"> |
|
33 | <div class="input"> | |
34 | ${h.text('repo_name',c.new_repo)} |
|
34 | ${h.text('repo_name',c.new_repo,class_="small")} | |
35 | </div> |
|
35 | </div> | |
36 | </div> |
|
36 | </div> | |
37 | <div class="field"> |
|
37 | <div class="field"> |
@@ -27,7 +27,7 b'' | |||||
27 | <label for="repo_name">${_('Name')}:</label> |
|
27 | <label for="repo_name">${_('Name')}:</label> | |
28 | </div> |
|
28 | </div> | |
29 | <div class="input"> |
|
29 | <div class="input"> | |
30 | ${h.text('repo_name',c.new_repo)} |
|
30 | ${h.text('repo_name',c.new_repo,class_="small")} | |
31 | ${h.hidden('user_created','True')} |
|
31 | ${h.hidden('user_created','True')} | |
32 | </div> |
|
32 | </div> | |
33 | </div> |
|
33 | </div> |
@@ -32,7 +32,7 b'' | |||||
32 | <label for="repo_name">${_('Name')}:</label> |
|
32 | <label for="repo_name">${_('Name')}:</label> | |
33 | </div> |
|
33 | </div> | |
34 | <div class="input input-medium"> |
|
34 | <div class="input input-medium"> | |
35 | ${h.text('repo_name')} |
|
35 | ${h.text('repo_name',class_="small")} | |
36 | </div> |
|
36 | </div> | |
37 | </div> |
|
37 | </div> | |
38 |
|
38 |
@@ -29,7 +29,7 b'' | |||||
29 | <label for="repo_name">${_('Fork name')}:</label> |
|
29 | <label for="repo_name">${_('Fork name')}:</label> | |
30 | </div> |
|
30 | </div> | |
31 | <div class="input"> |
|
31 | <div class="input"> | |
32 | ${h.text('fork_name')} |
|
32 | ${h.text('fork_name',class_="small")} | |
33 | </div> |
|
33 | </div> | |
34 | </div> |
|
34 | </div> | |
35 | <div class="field"> |
|
35 | <div class="field"> |
@@ -29,7 +29,7 b'' | |||||
29 | <label for="repo_name">${_('Name')}:</label> |
|
29 | <label for="repo_name">${_('Name')}:</label> | |
30 | </div> |
|
30 | </div> | |
31 | <div class="input input-medium"> |
|
31 | <div class="input input-medium"> | |
32 | ${h.text('repo_name')} |
|
32 | ${h.text('repo_name',class_="small")} | |
33 | </div> |
|
33 | </div> | |
34 | </div> |
|
34 | </div> | |
35 |
|
35 |
General Comments 0
You need to be logged in to leave comments.
Login now