Skip to content

Commit 77a641a

Browse files
committed
Merge branch 'develop'
2 parents dce83aa + a19275f commit 77a641a

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
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.
44

5+
### [1.0.6](https://github.com/icelam/leetcode-daily-question-telegram-bot/compare/v1.0.5...v1.0.6) (2023-12-05)
6+
7+
8+
### Bug Fixes
9+
10+
* 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))
11+
512
### [1.0.5](https://github.com/icelam/leetcode-daily-question-telegram-bot/compare/v1.0.4...v1.0.5) (2022-07-01)
613

714

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ clean-venv:
1616
test-with-venv:
1717
( \
1818
. ${VENV_ACTIVATE_PATH}; \
19-
pip install -r requirements.txt; \
19+
pip3 install -r requirements.txt; \
2020
. ${INIT_ENVIRONMENT_VARIABLE_SCRIPT}; \
2121
serverless invoke local -f cron; \
2222
)
@@ -25,7 +25,7 @@ test-with-venv:
2525
lint:
2626
( \
2727
. ${VENV_ACTIVATE_PATH}; \
28-
pip install -r requirements.txt; \
28+
pip3 install -r requirements.txt; \
2929
pylint ${APP_FOLDER} \
3030
)
3131

app/handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_question_of_today():
2020
client = requests.session()
2121

2222
# Visit leetcode webpage to retrieve a CSRF token first
23-
client.get(LEETCODE_ALL_PROBLEM_URL)
23+
client.get(LEETCODE_DOMAIN)
2424

2525
if 'csrftoken' in client.cookies:
2626
csrftoken = client.cookies['csrftoken']

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leetcode-daily-question-telegram-bot",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Push notification to Telegram channel for Leetcode's question of today",
55
"dependencies": {
66
"serverless-python-requirements": "^5.4.0"

serverless.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ frameworkVersion: "3"
66

77
provider:
88
name: aws
9-
runtime: python3.9
9+
runtime: python3.11
1010
environment:
1111
TELEGRAM_TOKEN: ${env:TELEGRAM_TOKEN}
1212
TELEGRAM_CHAT_ID: ${env:TELEGRAM_CHAT_ID}

0 commit comments

Comments
 (0)