Skip to content

Commit acf680a

Browse files
committed
NMBGMR water level pagination
1 parent 8cb66d2 commit acf680a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

backend/connectors/nmbgmr/source.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@
4646

4747
def _make_url(endpoint):
4848
if os.getenv("DEBUG") == "1":
49-
return f"http://localhost:8000/latest/{endpoint}"
50-
return f"https://waterdata.nmt.edu//latest/{endpoint}"
49+
url = f"http://localhost:8000/latest/{endpoint}"
50+
else:
51+
url = f"https://waterdata.nmt.edu/latest/{endpoint}"
52+
return url
5153

5254

5355
class NMBGMRSiteSource(BaseSiteSource):

0 commit comments

Comments
 (0)