Remove commented-out code for get_order_info method
This commit is contained in:
20
mayo.py
20
mayo.py
@@ -25,26 +25,6 @@ class MayoSession:
|
||||
raise Exception("Nie udało się zalogować do Mayo.")
|
||||
print("✅ Zalogowano poprawnie do systemu Mayo.")
|
||||
|
||||
# def get_order_info(self, url):
|
||||
# """
|
||||
# Pobiera dane z podanej strony zamówienia:
|
||||
# - numer zamówienia
|
||||
# - model gitary
|
||||
# """
|
||||
# r = self.session.get(url)
|
||||
# r.encoding = "utf-8"
|
||||
# soup = BeautifulSoup(r.text, "html.parser")
|
||||
|
||||
# # nr zamówienia
|
||||
# order_span = soup.find("span", class_="czarnobiale")
|
||||
# order_number = order_span.get_text(strip=True) if order_span else None
|
||||
|
||||
# # model gitary
|
||||
# input_tag = soup.find("input", {"name": "s_nr_kat"})
|
||||
# model = input_tag.get("value").strip() if input_tag else None
|
||||
|
||||
# return {"order_number": order_number, "model": model}
|
||||
|
||||
def get_order_info(self, url):
|
||||
"""
|
||||
Pobiera dane z podanej strony zamówienia:
|
||||
|
||||
Reference in New Issue
Block a user