Commit 4525cf76 authored by Lukas Eller's avatar Lukas Eller

included nest-asyncio

parent e37b920a
import nest_asyncio
nest_asyncio.apply()
......@@ -42,11 +42,13 @@ def rtr_details(open_test_uuids: List[str]) -> List[dict]:
urls = [f"{BASE_URL}/{SUBDOMAIN_DETAILS}/{uuid}" for uuid in open_test_uuids]
try:
loop = asyncio.get_running_loop()
except RuntimeError: # no event loop running:
loop = asyncio.new_event_loop()
loop = asyncio.get_event_loop()
results = loop.run_until_complete(query(urls))
return results
......
......@@ -7,3 +7,4 @@ aiohttp>=3.7.4
tqdm>=4.60.0
multidict>=5.1
requests>=2.25
nest-asyncio>=1.5.1
......@@ -30,5 +30,5 @@ setup(
"measprocess.rtr"
],
include_package_data=True,
install_requires=["pandas", "matplotlib", "geopandas", "overpy", "shapely", "numpy", "tqdm", "cartopy", "aiohttp", "multidict", "requests"],
install_requires=["pandas", "matplotlib", "geopandas", "overpy", "shapely", "numpy", "tqdm", "cartopy", "aiohttp", "multidict", "nest_asyncio", "requests"],
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment