Skip to content

Commit

Permalink
style: format code with Black and isort
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in ae5bab0 according to the output
from Black and isort.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Jan 29, 2025
1 parent ae5bab0 commit cdc1896
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions vanguard/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def place_order(
order_handle_two.wait_for(timeout=5000)
except PlaywrightTimeoutError:
order_handle_two = self.session.page.get_by_text("Submitted on")
order_handle_two.wait_for(timeout=5000)
order_handle_two.wait_for(timeout=5000)
order_number_text = order_handle_one.text_content()
order_match = re.search(r"Order #(\d+)", order_number_text)
if order_match:
Expand All @@ -320,8 +320,16 @@ def place_order(
if date_match:
date_str = date_match.group(2)
date_parts = date_str.split(", ET")
order_date = date_parts[1].strip() if len(date_parts) > 1 else "No order date found."
order_time = date_parts[0].replace(".", "") if len(date_parts) > 1 else "No order time found."
order_date = (
date_parts[1].strip()
if len(date_parts) > 1
else "No order date found."
)
order_time = (
date_parts[0].replace(".", "")
if len(date_parts) > 1
else "No order time found."
)
else:
order_date = "No order date found."
order_time = "No order time found."
Expand Down

0 comments on commit cdc1896

Please sign in to comment.