Commit 01f51a0e authored by Philipp Oeser's avatar Philipp Oeser
Browse files

Weekly report: only report revisions that were worked on during the week

For the weekly report, it is of less interest to see the history of
patches every week.
parent 86906449
......@@ -203,6 +203,7 @@ def report_personal_weekly_get(time_start, time_end):
review.pop(diff_id, None)
# Get open own diffs
constraints['modifiedStart'] = time_start
result = phab.differential.revision.search(queryKey="open", constraints=constraints)
data = result["data"]
......@@ -238,7 +239,7 @@ def report_personal_weekly_get(time_start, time_end):
print()
# Print open diffs
print("\'\'\'Own solutions in review: %s\'\'\'" % sum_diffs)
print("\'\'\'Patches worked on: %s\'\'\'" % sum_diffs)
for diff in sorted(data, key=lambda i: i['fields']['status']['name']):
if diff["fields"]["status"]['closed']:
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment