Skip to content

Commit 8408de1

Browse files
authored
Merge pull request #10 from MishkatIT/copilot/remove-scraping-related-code
Remove scraping test infrastructure and add hybrid auto/manual update approach
2 parents f2a7b70 + 5f6cf88 commit 8408de1

22 files changed

Lines changed: 24 additions & 3412 deletions

.github/workflows/test-scraping.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/update-stats.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
update-stats:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write # Required to push changes to repository
1214

1315
steps:
1416
- name: Checkout repository
@@ -42,7 +44,7 @@ jobs:
4244
run: |
4345
git config --global user.name 'GitHub Action'
4446
git config --global user.email 'action@github.com'
45-
git add README.md
47+
git add README.md last_known_counts.json
4648
if git diff --staged --quiet; then
4749
echo "No changes to commit"
4850
else

CHANGELOG.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

COUNTS_TEMPLATE.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

HOW_TO_UPDATE.md

Lines changed: 0 additions & 145 deletions
This file was deleted.

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,27 @@
125125

126126
---
127127

128+
## 📝 How to Update Statistics
129+
130+
This repository tracks problem-solving statistics using a hybrid approach:
131+
132+
### Automatic Updates (GitHub Actions)
133+
- Runs weekly on Sundays at 00:00 UTC
134+
- Automatically fetches statistics from platforms with working APIs
135+
- Failed platforms fall back to last known values with date stamps
136+
- Updates are pushed automatically to the repository
137+
138+
### Manual Updates
139+
If you need to update statistics manually:
140+
141+
1. Run `python3 manual_update.py` to input current statistics
142+
2. The script will prompt you to visit each platform and enter the current solve count
143+
3. Statistics are automatically saved and the README is updated
144+
145+
**Note:** Each platform shows the last update date in small text when using cached values.
146+
147+
---
148+
128149
<div align="center">
129150

130151
### 🚀 Continuous Learning & Growth

0 commit comments

Comments
 (0)