Skip to content

Commit

Permalink
init db
Browse files Browse the repository at this point in the history
  • Loading branch information
adenjonah committed May 20, 2024
1 parent 5cd14ca commit 9154cae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 34 deletions.
2 changes: 1 addition & 1 deletion server/json_databases/geojson/nav_path.json
Original file line number Diff line number Diff line change
@@ -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"}}]}
{}
34 changes: 1 addition & 33 deletions server/json_databases/geojson/user_pins.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
{"type": "FeatureCollection", "features": []}
1 change: 1 addition & 0 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9154cae

Please sign in to comment.