From 01f51a0e551ab730f0934dc6488613690ac4bf8f Mon Sep 17 00:00:00 2001
From: Philipp Oeser <info@graphics-engineer.com>
Date: Mon, 31 May 2021 16:27:57 +0200
Subject: [PATCH] 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.
---
 utils/weekly_report.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/utils/weekly_report.py b/utils/weekly_report.py
index 4304799..ebbbde0 100755
--- a/utils/weekly_report.py
+++ b/utils/weekly_report.py
@@ -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
-- 
GitLab