Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Oct 23, 2024
1 parent bcfa99f commit af77986
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions upcean/getprefix/getprefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@ def get_goodwill_upca_barcode_info(upc, infotype=None):
gw_item_type = "Furniture"
elif(re.findall(r"^(4120120)", upc)):
gw_item_type = "Books"
elif(re.findall(r"^(412)", upc)):
gw_item_type = "Books"
elif(re.findall(r"^(413)", upc)):
gw_item_type = "Media"
elif(re.findall(r"^(4002000)", upc)):
gw_item_type = "Mystery Dozen Deal"
elif(re.findall(r"^(4010000)", upc)):
Expand Down Expand Up @@ -495,6 +499,24 @@ def get_goodwill_upca_barcode_info(upc, infotype=None):
gw_item_type = "Mystery Dozen Deal"
else:
gw_item_type = gw_item_type

if(price_matches[0] == "199" and gw_item_type == "Books"):
gw_item_type = "Softcover / Kids Books"
elif(price_matches[0] == "299" and gw_item_type == "Books"):
gw_item_type = "Hard Cover Books"
else:
gw_item_type = gw_item_type

if(price_matches[0] == "199" and gw_item_type == "Media"):
gw_item_type = "Albums / CDs / VHD"
elif(price_matches[0] == "299" and gw_item_type == "Media"):
gw_item_type = "DVD / Disney VHS"
elif(price_matches[0] == "399" and gw_item_type == "Media"):
gw_item_type = "Blu-Ray / New VHS"
elif(price_matches[0] == "499" and gw_item_type == "Media"):
gw_item_type = "Season DVD"
else:
gw_item_type = gw_item_type
price_alt = str(price_matches[0].lstrip('0'))+price_matches[1]
formated_price = price_matches[0]+"."+price_matches[1]
formated_price_alt = str(price_matches[0].lstrip('0'))+"."+price_matches[1]
Expand Down

0 comments on commit af77986

Please sign in to comment.