Add casefold to ignore case in env file for theme

pull/102/head
Callum Leslie 3 years ago committed by GitHub
parent ce940a8057
commit 16f57bf477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,7 +23,7 @@ def download_screenshots_of_reddit_posts(reddit_object, screenshot_num, theme):
browser = p.chromium.launch() browser = p.chromium.launch()
context = browser.new_context() context = browser.new_context()
if theme == "dark": if theme.casefold() == "dark":
cookie_file = open('video_creation/cookies.json') cookie_file = open('video_creation/cookies.json')
cookies = json.load(cookie_file) cookies = json.load(cookie_file)
context.add_cookies(cookies) context.add_cookies(cookies)

Loading…
Cancel
Save