Skip to content

Commit

Permalink
Merge pull request #32 from MaxxRK/deepsource-transform-819c872a
Browse files Browse the repository at this point in the history
style: format code with Black and isort
  • Loading branch information
MaxxRK authored Jan 29, 2025
2 parents ae5bab0 + cdc1896 commit 711c7dc
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 711c7dc

Please sign in to comment.