Skip to content

Commit

Permalink
Fix some issues pointed by codacy
Browse files Browse the repository at this point in the history
Signed-off-by: starry69 <starry369126@outlook.com>
  • Loading branch information
starry-shivam committed Jun 26, 2020
1 parent 0fd0c08 commit ec882da
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions starrybot.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ class res(object):

# Don't async
def send(update, context, res):

chat = update.effective_chat
msg = update.effective_message
try:
context.bot.send_photo(chat.id, photo=res.preview,
caption=(s.WALL_STR.format(
Expand Down Expand Up @@ -193,9 +193,6 @@ def wallcolor(update, context):
@run_async
@send_action(upload)
def editorschoice(update, context):
msg = update.effective_message
chat = update.effective_chat

contents = requests.get(
f"{BASE_URL}?key={PIX_API}&editors_choice=true&page=2&per_page=200"
).json()
Expand All @@ -206,9 +203,6 @@ def editorschoice(update, context):
@run_async
@send_action(upload)
def randomwalls(update, context):
msg = update.effective_message
chat = update.effective_chat

contents = requests.get(
f"{BASE_URL}?key={PIX_API}&page=2&per_page=200"
).json()
Expand Down

0 comments on commit ec882da

Please sign in to comment.