Bad ChatGPT

This commit is contained in:
Joseph Ferano 2023-05-19 19:30:30 +07:00
parent f3a858956e
commit 36473a42ca

2
api.py
View File

@ -22,7 +22,7 @@ couch = couchdb.Server(f"http://{COUCHDB_USER}:{COUCHDB_PASSWORD}@{COUCHDB_HOST}
@app.on_event("startup")
async def startup_event():
if 'urls' not in couch:
couch.create_database('urls')
couch.create('urls')
@app.get("/")
async def root():