diff --git a/.github/workflows/daily_update.yml b/.github/workflows/daily_update.yml index 3dcfeff36a..65ea73652e 100644 --- a/.github/workflows/daily_update.yml +++ b/.github/workflows/daily_update.yml @@ -27,7 +27,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - import csv, datetime, glob, os, random, re, subprocess, sys + import csv, datetime, glob, os, re, subprocess, sys MAX_IN_RUN = 3 STALE_DAYS = 5 @@ -86,7 +86,6 @@ jobs: if regenerated: subprocess.run('git add *.md _data/locations/*.yml rank_only/*.json && git commit -am "regenerate location pages"', shell=True, check=True) - random.shuffle(to_process) # in case we're getting failures for a specific preset, this should let others move forward for key in to_process[0:MAX_IN_RUN]: print("Running: %s" % key) preset = flookup[key] diff --git a/github/github.go b/github/github.go index 8ea1c36d69..71b96a9182 100644 --- a/github/github.go +++ b/github/github.go @@ -224,7 +224,9 @@ Pages: } previousCursor = edgeNode["cursor"].(string) - minFollowerCount = int(followerCount) + if minFollowerCount == -1 || followerCount < minFollowerCount { + minFollowerCount = followerCount + } } } }