removed server id fully
This commit is contained in:
@@ -3,7 +3,7 @@ from fastapi.responses import JSONResponse, FileResponse
|
|||||||
from fastapi.security import HTTPBasic, HTTPBasicCredentials
|
from fastapi.security import HTTPBasic, HTTPBasicCredentials
|
||||||
from .auth import init_db, verify_api_key, get_db
|
from .auth import init_db, verify_api_key, get_db
|
||||||
from .models import Event, BatchEvents
|
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 logging
|
||||||
import os
|
import os
|
||||||
import secrets
|
import secrets
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ from typing import Any, List, Optional
|
|||||||
class Event(BaseModel):
|
class Event(BaseModel):
|
||||||
type: str
|
type: str
|
||||||
time: int
|
time: int
|
||||||
serverId: str
|
|
||||||
data: Optional[dict] = {}
|
data: Optional[dict] = {}
|
||||||
|
|
||||||
class BatchEvents(BaseModel):
|
class BatchEvents(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user