From 178fcbeb0d9f842ec529c0e62c3765e7add887f6 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 3 May 2024 14:24:24 +0000 Subject: [PATCH] style: format code with Black This commit fixes the style issues introduced in 238d2c8 according to the output from Black. Details: None --- main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 5ac24d1..0d2c158 100644 --- a/main.py +++ b/main.py @@ -73,10 +73,10 @@ async def open_webpage_with_cookies(session, link, json_cookies, filename): else: try: plan = ( - soup.select_one( - "div.account-section:nth-child(2) > section:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > b:nth-child(1)" - ).text - or soup.select_one(".default-ltr-cache-10ajupv").text + soup.select_one( + "div.account-section:nth-child(2) > section:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > b:nth-child(1)" + ).text + or soup.select_one(".default-ltr-cache-10ajupv").text ) email = soup.select_one(".account-section-email").text except AttributeError: @@ -120,7 +120,7 @@ async def process_cookie_file(filename): cookies.append(additional_json) # Save working cookies to JSON file with open( - f"working_cookies/[{email}] - {plan}.json", "w" + f"working_cookies/[{email}] - {plan}.json", "w" ) as json_file: json.dump(cookies, json_file, indent=4) working_cookies += 1