diff --git a/api/app/main.py b/api/app/main.py index 7d4a7bd..bfd3f12 100644 --- a/api/app/main.py +++ b/api/app/main.py @@ -3,7 +3,7 @@ from fastapi.responses import JSONResponse, FileResponse from fastapi.security import HTTPBasic, HTTPBasicCredentials from .auth import init_db, verify_api_key, get_db from .models import Event, BatchEvents -from .influx import write_event, client, INFLUX_ORG, INFLUX_BUCKET +from .influx import write_ev3t, client, INFLUX_ORG, INFLUX_BUCKET import logging import os import secrets diff --git a/api/app/models.py b/api/app/models.py index 554eac6..340075d 100644 --- a/api/app/models.py +++ b/api/app/models.py @@ -4,7 +4,6 @@ from typing import Any, List, Optional class Event(BaseModel): type: str time: int - serverId: str data: Optional[dict] = {} class BatchEvents(BaseModel):