Skip to content

Commit

Permalink
also handle delay alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Oct 20, 2024
1 parent 128f72e commit e6cf61d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion usps/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.7"
__version__ = "0.8.8"
3 changes: 2 additions & 1 deletion usps/tracking/usps.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"usps in possession of item": "Possessed",
"arrived at post office": "At Office",
"out for delivery": "Delivering",
"awaiting delivery": "Delayed ",
"in transit to next facility": "In Transit",
"arriving on time": "Package On Time",
"accepted at usps origin facility": "Accepted",
Expand Down Expand Up @@ -156,7 +157,7 @@ def find_object(class_name: str, parent: Tag | None = None) -> Tag | None:

# Handle fetching the current step
try:
if any(find_object(x) for x in ["preshipment-status", "shipping-partner-status", "delivery-attempt-status"]):
if any(find_object(x) for x in ["preshipment-status", "shipping-partner-status", "delivery-attempt-status", "addressee-unknown-status"]):
current_step = get_text(find_object("tb-status"))

else:
Expand Down

0 comments on commit e6cf61d

Please sign in to comment.