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
|
from bs4 import BeautifulSoup
|
||||||
import requests
|
import requests
|
||||||
import threading
|
import threading
|
||||||
|
import core_utils
|
||||||
|
|
||||||
results = {}
|
results = {}
|
||||||
|
|
||||||
@ -20,11 +21,7 @@ def get_river_stats(river_id):
|
|||||||
|
|
||||||
|
|
||||||
def get_stats():
|
def get_stats():
|
||||||
river_ids = [
|
river_ids = requests.get(core_utils.json_endpoint + "rivers.json").json()["rivers"]
|
||||||
"06752260",
|
|
||||||
"07091200",
|
|
||||||
"06719505",
|
|
||||||
]
|
|
||||||
threads = []
|
threads = []
|
||||||
for river in river_ids:
|
for river in river_ids:
|
||||||
t = threading.Thread(target=get_river_stats, args=(river,))
|
t = threading.Thread(target=get_river_stats, args=(river,))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user