Skip to content

Commit 3b5976a

Browse files
committed
Filter submissions properly so the last submission doesn't get resubmitted
1 parent 4688284 commit 3b5976a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function commit(octokit, owner, repo, commitInfo, treeSHA, latestCommitSHA
8787
// Returns false if no more submissions should be added.
8888
function addToSubmissions(response, lastTimestamp, filterDuplicateSecs, submissions_dict, submissions) {
8989
for (const submission of response.data.submissions_dump) {
90-
if (submission.timestamp < lastTimestamp) {
90+
if (submission.timestamp <= lastTimestamp) {
9191
return false;
9292
}
9393
if (submission.status_display !== 'Accepted') {

0 commit comments

Comments
 (0)