Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Leetcode not working #183

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Fixed Leetcode not working #183

merged 2 commits into from
Oct 11, 2023

Conversation

xsnowstorm
Copy link
Contributor

What kind of change does this PR introduce?
Bug fix

Describe the changes proposed in the pull request

  • fixed Leetcode command not working
  • added getenv function to config.py

(how it is right now)
IMG_1295

Copy link
Contributor

@timelessnesses timelessnesses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -17,7 +17,7 @@ async def execute(self, arguments, message) -> None:
leet_code_api_url = "https://leetcode.com/api/problems/all"
async with aiohttp.ClientSession() as ses:
async with ses.get(leet_code_api_url) as resp:
problem_data = await resp.json()
problem_data = await resp.json(content_type=None)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong content type returns from leet code. damn

@logicguy1 logicguy1 merged commit 94dca07 into v1rbox:main Oct 11, 2023
1 check passed
@xsnowstorm xsnowstorm deleted the leetcode branch October 15, 2023 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants