Skip to content

Commit 2e4ff75

Browse files
Formatting and dependency fixes
1 parent dd2677c commit 2e4ff75

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/static_analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
python-version: "3.12"
1616
- name: Install dependencies
1717
run: |
18-
python -m pip install --upgrade pip
18+
pip install -r css-reports/requirements.txt
1919
pip install pylint
2020
- name: Analysing the code with pylint
2121
run: |
@@ -53,7 +53,7 @@ jobs:
5353
python-version: "3.12"
5454
- name: Install dependencies
5555
run: |
56-
python -m pip install --upgrade pip
56+
pip install -r css-reports/requirements.txt
5757
pip install ruff
5858
- name: Analysing the code with ruff
5959
run: ruff check --no-fix --output-format=github

css-reports/report.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ async def fetch_report_url_and_cookies(
8686
f"https://www.guildofstudents.com/organisation/salesreports/{org_id}/"
8787
)
8888

89-
data_fields, cookies = await get_msl_context(url=SALES_REPORTS_URL, auth_cookie=auth_cookie)
89+
data_fields, cookies = await get_msl_context(
90+
url=SALES_REPORTS_URL, auth_cookie=auth_cookie
91+
)
9092

9193
form_data: dict[str, str] = {
9294
SALES_FROM_DATE_KEY: from_date.strftime("%d/%m/%Y"),
@@ -108,7 +110,7 @@ async def fetch_report_url_and_cookies(
108110
)
109111
async with (
110112
session_v2,
111-
session_v2.post(url=SALES_REPORTS_URL, data=data_fields) as http_response
113+
session_v2.post(url=SALES_REPORTS_URL, data=data_fields) as http_response,
112114
):
113115
if http_response.status != 200:
114116
print("Returned a non 200 status code!!")

0 commit comments

Comments
 (0)