diff --git a/api.py b/api.py index 957e8d9..c4d6a95 100644 --- a/api.py +++ b/api.py @@ -19,11 +19,6 @@ app.mount("/static", StaticFiles(directory="static", html=True), name="static") couch = couchdb.Server(f"http://{COUCHDB_USER}:{COUCHDB_PASSWORD}@{COUCHDB_HOST}:{COUCHDB_PORT}") -@app.on_event("startup") -async def startup_event(): - if 'urls' not in couch: - couch.create_database('urls') - @app.get("/") async def root(): return FileResponse('static/index.html')