update endpoint

This commit is contained in:
2025-03-13 09:46:55 +01:00
parent 7832be0312
commit dcc16c2759
11 changed files with 5 additions and 5 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 613 KiB

After

Width:  |  Height:  |  Size: 615 KiB

@@ -15,7 +15,7 @@ from datetime import datetime, timedelta
def get_data(emeis:list[str],scraper:DataScraper) -> list[pd.DataFrame]:
dataframes = []
for imei in tqdm(emeis,ascii=True,desc="gather_data"):
resp = json.loads(scraper.get_data(imei,history_length=90)["response"].decode("utf-8"))["data"]
resp = json.loads(scraper.get_data(imei,history_length=90)["response"].decode("utf-8"))
df = pd.DataFrame(resp)
df['MeasurementTime'] = pd.to_datetime(df['MeasurementTime']) #fix time date
dataframes.append(df)
Binary file not shown.