Skip to content

Commit 1aede82

Browse files
minor fixes
1 parent e46bf0b commit 1aede82

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

css-reports/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ async def fetch_customisation_report():
2929
start_date: str | None = request.args.get("start_date")
3030
end_date: str | None = request.args.get("end_date")
3131

32-
# print("Auth cookie: " + auth_cookie)
3332
print(f"Organisation ID: {organisation_id}")
3433
print(f"Product Name: {product_name}")
3534

css-reports/report.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,14 @@ async def fetch_report_url_and_cookies(
9191
headers=BASE_HEADERS,
9292
cookies=cookies,
9393
)
94-
async with (session_v2, session_v2.post(url=SALES_REPORTS_URL, data=data_fields) as http_response,): # noqa: E501
94+
async with (session_v2, session_v2.post(url=SALES_REPORTS_URL, data=data_fields) as http_response): # noqa: E501
9595
if http_response.status != 200:
9696
print("Returned a non 200 status code!!")
9797
print(http_response)
9898
return None, {}
9999

100100
response_html: str = await http_response.text()
101101

102-
# get the report viewer div
103102
soup = BeautifulSoup(response_html, "html.parser")
104103
report_viewer_div: bs4.PageElement | bs4.Tag | bs4.NavigableString | None = (
105104
soup.find("div", {"id": "report_viewer_wrapper"})

0 commit comments

Comments
 (0)