Skip to content

Commit 2e1c8b6

Browse files
committed
fix bugs and have unfinished todo
1 parent 5c92451 commit 2e1c8b6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/scrape.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,17 @@ jobs:
3737
env:
3838
GH_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
3939
run: |
40+
# Configure git user
4041
git config user.name "github-actions"
4142
git config user.email "github-actions@github.com"
43+
44+
# Use PAT for authentication
4245
git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/${{ github.repository }}.git
46+
47+
# Stage changes
4348
git add -A
49+
50+
# Commit and push if there are changes
4451
if ! git diff --cached --quiet; then
4552
git commit -m "✨ Data update at $(date -u '+%Y-%m-%d')"
4653
git push

scrape_ollama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def main():
226226
if prev_date:
227227
try:
228228
prev_comp_date = (
229-
datetime.strptime(prev_date, '%Y-%m-%d') - timedelta(days=1001)).date().isoformat()#todo fix to 1
229+
datetime.strptime(prev_date, '%Y-%m-%d') - timedelta(days=101)).date().isoformat()#todo fix to 1
230230
except:
231231
prev_comp_date = prev_date
232232
except:

0 commit comments

Comments
 (0)