faker dummy inserter 추가, mysql 모듈 debug print 제거
This commit is contained in:
1 parent
b7f1588bc8
commit
a951d0d1b6
3 files changed
+33
-3
No files matched your search
@@ -34,7 +34,6 @@ async def create_user(user_name:str, phone_number:str=None):
|
||||
raise HTTPException(status_code=status.HTTP_409_CONFLICT, detail="user already exist")
|
||||
|
||||
user_id = cur.lastrowid
|
||||
print(user_id)
|
||||
await cnx.commit()
|
||||
return user_id
|
||||
|
||||
@@ -148,7 +147,6 @@ async def create_blog(blog_owner:int, blog_title:str, blog_content:str = None):
|
||||
raise HTTPException(status_code=status.HTTP_409_CONFLICT, detail="blog already exist")
|
||||
|
||||
blog_id = cur.lastrowid
|
||||
print(blog_id)
|
||||
await cnx.commit()
|
||||
return blog_id
|
||||
|
||||
|
||||
Reference in new issue
Block a user