Skip to content

Commit f2814f4

Browse files
committed
Update README auto updates
1 parent 8370734 commit f2814f4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build-deploy-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
run: |
7575
cp Style/overrides.css docs/
7676
echo "leetcode.romitsagu.com" > ./docs/CNAME
77-
cp README.md docs/
77+
cp Site_README.md docs/
7878
7979
- name: Build site
8080
run: mkdocs build --clean --site-dir site

Scripts/update_project_readme.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def fetch_problem_data(slug: str):
2626
}
2727
headers = {
2828
"Content-Type": "application/json",
29-
"User-Agent": "Mozilla/5.0"
29+
"User-Agent": "Mozilla/5.0",
30+
"Referer": f"https://leetcode.com/problems/{slug}/"
3031
}
3132
try:
3233
resp = requests.post(url, json=query, headers=headers, timeout=10)

0 commit comments

Comments
 (0)