From 48ca8016429c6f357402a3c47a7a0d44557683f6 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sun, 7 Jul 2024 08:40:23 -0700 Subject: [PATCH] Move rivers for flows to the kube endpoint --- app/river_stats.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/river_stats.py b/app/river_stats.py index bb385501..f0a4bb79 100755 --- a/app/river_stats.py +++ b/app/river_stats.py @@ -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,))