Skip to content
Snippets Groups Projects
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
Branches
Tags v3.6.19
No related merge requests found
...@@ -203,6 +203,7 @@ def report_personal_weekly_get(time_start, time_end): ...@@ -203,6 +203,7 @@ def report_personal_weekly_get(time_start, time_end):
review.pop(diff_id, None) review.pop(diff_id, None)
# Get open own diffs # Get open own diffs
constraints['modifiedStart'] = time_start
result = phab.differential.revision.search(queryKey="open", constraints=constraints) result = phab.differential.revision.search(queryKey="open", constraints=constraints)
data = result["data"] data = result["data"]
...@@ -238,7 +239,7 @@ def report_personal_weekly_get(time_start, time_end): ...@@ -238,7 +239,7 @@ def report_personal_weekly_get(time_start, time_end):
print() print()
# Print open diffs # 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']): for diff in sorted(data, key=lambda i: i['fields']['status']['name']):
if diff["fields"]["status"]['closed']: if diff["fields"]["status"]['closed']:
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment