diff --git a/server/json_databases/geojson/nav_path.json b/server/json_databases/geojson/nav_path.json index 1f5a139..9e26dfe 100644 --- a/server/json_databases/geojson/nav_path.json +++ b/server/json_databases/geojson/nav_path.json @@ -1 +1 @@ -{"type": "FeatureCollection", "features": [{"type": "Feature", "geometry": {"type": "LineString", "coordinates": [[-95.0815737733052, 29.564990707422616], [-95.08157175938487, 29.564884505749244], [-95.08154769442301, 29.564801568620513], [-95.08144097914406, 29.564805181063072], [-95.08134861439733, 29.564818385035885], [-95.08131356209536, 29.564887911378513]]}, "properties": {"name": "Rover Path"}}]} \ No newline at end of file +{} \ No newline at end of file diff --git a/server/json_databases/geojson/user_pins.json b/server/json_databases/geojson/user_pins.json index f2885ec..188bb9e 100644 --- a/server/json_databases/geojson/user_pins.json +++ b/server/json_databases/geojson/user_pins.json @@ -1,33 +1 @@ -{ - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "properties": { - "Name": "Eva2 + 2024-05-20T03:48:25.045600" - }, - "geometry": { - "coordinates": [ - -95.08174938354279, - 29.564937170822553 - ], - "type": "Point" - }, - "id": "2024-05-20T03:48:25.045600" - }, - { - "type": "Feature", - "properties": { - "Name": "Eva2 + 5011" - }, - "geometry": { - "coordinates": [ - -95.08174938354279, - 29.564937170822553 - ], - "type": "Point" - }, - "id": 5011 - } - ] -} \ No newline at end of file +{"type": "FeatureCollection", "features": []} \ No newline at end of file diff --git a/server/server.py b/server/server.py index 957cc6e..63e23d4 100644 --- a/server/server.py +++ b/server/server.py @@ -68,6 +68,7 @@ async def fetch_json(url: str): @app.on_event("startup") async def startup_event(): + initialize_database_files() task = asyncio.create_task(periodic_fetch_and_store()) await asyncio.sleep(1) scheduler = AsyncIOScheduler()