Move rivers for flows to the kube endpoint
All checks were successful
Build and push / changes (push) Successful in 4s
Build and push / Lint-Python (push) Successful in 6s
Build and push / Build-and-Push-Docker (push) Successful in 18s
Build and push / sync-argocd-app (push) Successful in 3s

This commit is contained in:
Luke R 2024-07-07 08:40:23 -07:00
parent 208394f6d6
commit 09ef866ff8

View File

@ -2,6 +2,7 @@ import discord
from bs4 import BeautifulSoup
import requests
import threading
import core_utils
results = {}
@ -20,11 +21,7 @@ def get_river_stats(river_id):
def get_stats():
river_ids = [
"06752260",
"07091200",
"06719505",
]
river_ids = requests.get(core_utils.json_endpoint + "rivers.json").json()["rivers"]
threads = []
for river in river_ids:
t = threading.Thread(target=get_river_stats, args=(river,))