Bad ChatGPT
This commit is contained in:
parent
f3a858956e
commit
4059379b52
2
api.py
2
api.py
@ -22,7 +22,7 @@ couch = couchdb.Server(f"http://{COUCHDB_USER}:{COUCHDB_PASSWORD}@{COUCHDB_HOST}
|
|||||||
@app.on_event("startup")
|
@app.on_event("startup")
|
||||||
async def startup_event():
|
async def startup_event():
|
||||||
if 'urls' not in couch:
|
if 'urls' not in couch:
|
||||||
couch.create_database('urls')
|
couch['urls'] = {}
|
||||||
|
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
async def root():
|
async def root():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user