Skip to content

Commit

Permalink
style: lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuhanming committed Dec 14, 2021
1 parent d69b987 commit 4019cac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/add_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
- Confirm one more time before adding question.
"""


def add(update: Update, context: CallbackContext) -> int:
"""Kicks off the question adding process and asks user for the question URL."""
# Unwrap and fail fast
Expand Down Expand Up @@ -80,7 +81,7 @@ def try_fetch_details(update: Update, context: CallbackContext) -> int:
platform = "leetcode"
elif bool(match(HACKERRANK_REGEX, url)):
platform = "hackerrank"

context.user_data["PLATFORM"] = platform

if platform == "other":
Expand All @@ -91,7 +92,7 @@ def try_fetch_details(update: Update, context: CallbackContext) -> int:
reply_markup=ReplyKeyboardRemove(),
)
return MANUAL_NAME

is_leetcode = platform == "leetcode"
update.message.reply_text(
"This part may take a while to load.\n" "Do be patient with me!"
Expand Down

0 comments on commit 4019cac

Please sign in to comment.