From 3b5976a73a79bbb5e0b251ae726494c61555afe1 Mon Sep 17 00:00:00 2001 From: Josh Cai Date: Mon, 6 Jul 2020 20:17:34 -0700 Subject: [PATCH] Filter submissions properly so the last submission doesn't get resubmitted --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a7de49f2..841ffb3e 100644 --- a/index.js +++ b/index.js @@ -87,7 +87,7 @@ async function commit(octokit, owner, repo, commitInfo, treeSHA, latestCommitSHA // Returns false if no more submissions should be added. function addToSubmissions(response, lastTimestamp, filterDuplicateSecs, submissions_dict, submissions) { for (const submission of response.data.submissions_dump) { - if (submission.timestamp < lastTimestamp) { + if (submission.timestamp <= lastTimestamp) { return false; } if (submission.status_display !== 'Accepted') {