Skip to content

Commit

Permalink
style(*): black code style
Browse files Browse the repository at this point in the history
  • Loading branch information
samsunghappytree123 committed Mar 19, 2023
1 parent 6f3326e commit 1775f9d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions cogs/meme.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,12 @@ def check(inter):
)

if interaction_check.data["custom_id"] == "yes_button":
await MEME_DATABASE.insert(title=title, url=img_msg.attachments[0].url, messageID=img_msg.id, uploader_id=ctx.author.id)
await MEME_DATABASE.insert(
title=title,
url=img_msg.attachments[0].url,
messageID=img_msg.id,
uploader_id=ctx.author.id,
)
return await ctx.edit(
content=f"{ctx.author.mention}, 짤 등록이 완료되었어요!",
embed=None,
Expand Down Expand Up @@ -607,7 +612,12 @@ def check(inter):
)

if interaction_check.data["custom_id"] == "yes_button":
await MEME_DATABASE.insert(title=title, url=img_msg.attachments[0].url, messageID=img_msg.id, uploader_id=ctx.author.id)
await MEME_DATABASE.insert(
title=title,
url=img_msg.attachments[0].url,
messageID=img_msg.id,
uploader_id=ctx.author.id,
)
return await ctx.edit(
content=f"{ctx.author.mention}, 짤 등록이 완료되었어요!",
embed=None,
Expand Down
2 changes: 1 addition & 1 deletion utils/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def mlist(filter: dict = {}):
meme_list.append(i)
return meme_list

async def insert(title: str, url: str, messageID:int, uploader_id: int):
async def insert(title: str, url: str, messageID: int, uploader_id: int):
"""
title (str): 필수, 짤 제목 입력
url (str): 필수, 짤 사진 url 입력
Expand Down

0 comments on commit 1775f9d

Please sign in to comment.