Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
icelam committed Dec 5, 2023
2 parents dce83aa + a19275f commit 77a641a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.0.6](https://github.com/icelam/leetcode-daily-question-telegram-bot/compare/v1.0.5...v1.0.6) (2023-12-05)


### Bug Fixes

* fix issue that csrf token cannot be retrieved when directly land on problem list page ([6ae9b15](https://github.com/icelam/leetcode-daily-question-telegram-bot/commit/6ae9b157e38f8b7476641c854514d8a1e1921c26))

### [1.0.5](https://github.com/icelam/leetcode-daily-question-telegram-bot/compare/v1.0.4...v1.0.5) (2022-07-01)


Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ clean-venv:
test-with-venv:
( \
. ${VENV_ACTIVATE_PATH}; \
pip install -r requirements.txt; \
pip3 install -r requirements.txt; \
. ${INIT_ENVIRONMENT_VARIABLE_SCRIPT}; \
serverless invoke local -f cron; \
)
Expand All @@ -25,7 +25,7 @@ test-with-venv:
lint:
( \
. ${VENV_ACTIVATE_PATH}; \
pip install -r requirements.txt; \
pip3 install -r requirements.txt; \
pylint ${APP_FOLDER} \
)

Expand Down
2 changes: 1 addition & 1 deletion app/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_question_of_today():
client = requests.session()

# Visit leetcode webpage to retrieve a CSRF token first
client.get(LEETCODE_ALL_PROBLEM_URL)
client.get(LEETCODE_DOMAIN)

if 'csrftoken' in client.cookies:
csrftoken = client.cookies['csrftoken']
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leetcode-daily-question-telegram-bot",
"version": "1.0.5",
"version": "1.0.6",
"description": "Push notification to Telegram channel for Leetcode's question of today",
"dependencies": {
"serverless-python-requirements": "^5.4.0"
Expand Down
2 changes: 1 addition & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ frameworkVersion: "3"

provider:
name: aws
runtime: python3.9
runtime: python3.11
environment:
TELEGRAM_TOKEN: ${env:TELEGRAM_TOKEN}
TELEGRAM_CHAT_ID: ${env:TELEGRAM_CHAT_ID}
Expand Down

0 comments on commit 77a641a

Please sign in to comment.