Skip to content

Commit

Permalink
update init_sql
Browse files Browse the repository at this point in the history
Signed-off-by: K8sCat <[email protected]>
  • Loading branch information
k8scat committed May 14, 2024
1 parent b0f3afa commit b564ed1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 52 deletions.
49 changes: 0 additions & 49 deletions init_sql.py

This file was deleted.

4 changes: 1 addition & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from fastapi import FastAPI, HTTPException
from fastapi.middleware.cors import CORSMiddleware

from init_sql import create_database_and_table
from utils import generate_music, get_feed
import schemas
from utils import generate_music,get_feed
Expand Down Expand Up @@ -60,8 +59,7 @@ async def generate_data(chat_user_message,chat_id,timeStamp):
cookie = await db_manager.get_non_working_cookie()
break
except:
await create_database_and_table()
db_manager.create_database_and_table()
await db_manager.create_database_and_table()
try:
_return_ids = False
_return_tags = False
Expand Down

0 comments on commit b564ed1

Please sign in to comment.