Skip to content

Commit

Permalink
remove dry run, sort slugs before checking
Browse files Browse the repository at this point in the history
  • Loading branch information
abulte committed Nov 14, 2024
1 parent 6c7249f commit 8c8ea03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-universes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
DATAGOUV_URL: https://demo.data.gouv.fr
DATAGOUV_API_KEY: ${{ secrets.DATAGOUV_API_KEY_DEMO }}
run: |
python -u feed-universe.py universe-demo.yaml --dry-run 2>&1 | tee logs/run_log_demo.txt
python -u feed-universe.py universe-demo.yaml 2>&1 | tee logs/run_log_demo.txt
- name: Commit Run Logs
run: |
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
DATAGOUV_URL: https://www.data.gouv.fr
DATAGOUV_API_KEY: ${{ secrets.DATAGOUV_API_KEY_PROD }}
run: |
python -u feed-universe.py universe-prod.yaml --dry-run 2>&1 | tee logs/run_log_prod.txt
python -u feed-universe.py universe-prod.yaml 2>&1 | tee logs/run_log_prod.txt
- name: Commit Run Logs
run: |
Expand Down
4 changes: 2 additions & 2 deletions feed-universe.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,12 @@ def slow_delete_all_topic_datasets(self, topic):
try:
orgs = set()

for org in slugs:
for org in sorted(slugs):
verbose(f"Checking organization '{org}'")
try:
api.get_organization(org)
orgs.add(org)
except:
except Exception:
print(f"Unknown organization '{org}'")

for q in queries:
Expand Down

0 comments on commit 8c8ea03

Please sign in to comment.