aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2019-03-19 14:06:54 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2019-03-19 14:06:54 -0400
commit40ccde6b0dcffc74ad5f4a90e65d4c970c17d650 (patch)
tree98028b2e607f33ae716e3cc2410bf3e15a7d3799
parent9bc20f52a85fb8d27528973dc69a4acb8702fc85 (diff)
downloadkorg-helpers-40ccde6b0dcffc74ad5f4a90e65d4c970c17d650.tar.gz
Fix off-by-one in get_unprocessed_prs
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-xpr-tracker-bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pr-tracker-bot.py b/pr-tracker-bot.py
index 4ac9287..92a396f 100755
--- a/pr-tracker-bot.py
+++ b/pr-tracker-bot.py
@@ -568,7 +568,7 @@ def get_unprocessed_prs(c, prs, cutoffdays=30):
sent_prs = get_all_thanked_prs(c, cutoffdays)
new_prs = list()
for row in prs:
- if row[0] not in sent_prs:
+ if row[1] not in sent_prs:
new_prs.append(row)
return new_prs