Move rivers for flows to the kube endpoint
This commit is contained in:
parent
23f614243c
commit
48ca801642
@ -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,))
|
||||
|
Loading…
x
Reference in New Issue
Block a user