diff options
author | jan Iversen <jani@documentfoundation.org> | 2016-12-24 12:39:12 +0100 |
---|---|---|
committer | jan Iversen <jani@documentfoundation.org> | 2016-12-24 12:39:23 +0100 |
commit | 136a2d65c494e6bcb477507e88f2d6493c94b12b (patch) | |
tree | 01d1f5f0610d9c6a91842b00600a79134f82b348 | |
parent | 628372fcdc145ad31e51259340ea08c6e72270c2 (diff) |
update due to problem in gerrit API
-rwxr-xr-x | esc-reporting/esc-collect.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/esc-reporting/esc-collect.py b/esc-reporting/esc-collect.py index 6bfb9c0..e222485 100755 --- a/esc-reporting/esc-collect.py +++ b/esc-reporting/esc-collect.py @@ -93,7 +93,8 @@ def util_load_data_file(cfg, fileName, funcName, rawListProto): rawList = rawListProto rawList['newest-entry'] = (datetime.datetime.now() - datetime.timedelta(days=365)).strftime("%Y-%m-%d 00") print('retrieving full year of ' + funcName + ', take a coffee') - return datetime.datetime.strptime(rawList['newest-entry'], "%Y-%m-%d %H"), rawList + searchDate = datetime.datetime.strptime(rawList['newest-entry'], "%Y-%m-%d %H") - datetime.timedelta(days=2) + return searchDate, rawList |