diff --git a/Backend/components/record_data.py b/Backend/components/record_data.py index ec56d9e3..a7516a5c 100644 --- a/Backend/components/record_data.py +++ b/Backend/components/record_data.py @@ -2,12 +2,12 @@ from fastapi import APIRouter, Response import pandas as pd import io - +import config router = APIRouter() @router.get("/get-processed-data") async def get_processed_data(start_time, end_time): - all_keys = list(comms.frontend_data.keys()) + all_keys = list(config.FORMAT.keys()) all_keys.remove('tstamp_ms') all_keys.remove('tstamp_sc') all_keys.remove('tstamp_mn') @@ -16,7 +16,6 @@ async def get_processed_data(start_time, end_time): result = await db.query_without_aggregation(all_keys, start_time, end_time) - result.index = pd.to_datetime(result.index, unit='ms') # see https://stackoverflow.com/a/63989481 output = io.BytesIO()