Diego Marroquin commited on
Commit ·
0dcbc89
1
Parent(s): 204f8b8
Modified main.py
Browse files
main.py
CHANGED
|
@@ -656,7 +656,7 @@ class Nucmonitor(Resource):
|
|
| 656 |
return (nucmonitor_response)
|
| 657 |
|
| 658 |
def get_rte_data(self, start_date, end_date):
|
| 659 |
-
rte_url = "http://
|
| 660 |
rte_params = {"start_date": start_date, "end_date": end_date}
|
| 661 |
rte_response = requests.get(rte_url, params=rte_params)
|
| 662 |
# rte_data = rte_response.json()
|
|
@@ -664,7 +664,7 @@ class Nucmonitor(Resource):
|
|
| 664 |
|
| 665 |
def get_mongo_data(self, start_date, end_date, photo_date, past_date):
|
| 666 |
print("Getting url")
|
| 667 |
-
mongo_url = "http://
|
| 668 |
print("Getting params")
|
| 669 |
mongo_params = {"start_date": start_date, "end_date": end_date, "photo_date": photo_date, "past_date": past_date}
|
| 670 |
print("Getting request")
|
|
|
|
| 656 |
return (nucmonitor_response)
|
| 657 |
|
| 658 |
def get_rte_data(self, start_date, end_date):
|
| 659 |
+
rte_url = "http://0.0.0.0:7860/nucpy/v1/rte" # RTE endpoint URL
|
| 660 |
rte_params = {"start_date": start_date, "end_date": end_date}
|
| 661 |
rte_response = requests.get(rte_url, params=rte_params)
|
| 662 |
# rte_data = rte_response.json()
|
|
|
|
| 664 |
|
| 665 |
def get_mongo_data(self, start_date, end_date, photo_date, past_date):
|
| 666 |
print("Getting url")
|
| 667 |
+
mongo_url = "http://0.0.0.0:7860/nucpy/v1/raw" # Mongo endpoint URL
|
| 668 |
print("Getting params")
|
| 669 |
mongo_params = {"start_date": start_date, "end_date": end_date, "photo_date": photo_date, "past_date": past_date}
|
| 670 |
print("Getting request")
|