Skip to content

Commit 405546d

Browse files
committed
fix bugs
1 parent e9fb981 commit 405546d

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/scrape.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Checkout
1717
uses: actions/checkout@v4
1818
with:
19-
persist-credentials: false # important to allow using PAT for push
19+
persist-credentials: false # Allow using custom token for push
2020

2121
- name: Setup Python
2222
uses: actions/setup-python@v5
@@ -33,16 +33,13 @@ jobs:
3333
PYTHONUNBUFFERED: '1'
3434
run: python scrape_ollama.py
3535

36-
- name: Configure Git to use PAT
36+
- name: Commit and push changes
3737
env:
3838
GH_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
3939
run: |
40-
git config user.name github-actions
41-
git config user.email github-actions@github.com
40+
git config user.name "github-actions"
41+
git config user.email "github-actions@github.com"
4242
git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/${{ github.repository }}.git
43-
44-
- name: Commit and push changes
45-
run: |
4643
git add -A
4744
if ! git diff --cached --quiet; then
4845
git commit -m "✨ Data update at $(date -u '+%Y-%m-%d')"

scrape_ollama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def main():
236236
if prev_comp_date and prev_success:
237237
filtered_models = {name: info for name, info in models_data.items() if
238238
info.get('update_date') and info.get('update_date') >= prev_comp_date}
239-
print(f"! prev data was {prev_comp_date} and f:{len(filtered_models)} m:{len(filtered_models)}")
239+
print(f"! prev data was {prev_comp_date} and f:{len(filtered_models)} m:{len(models_data)}")
240240
all_tags_data, tags_data_status = get_all_tags_data(filtered_models or models_data)
241241
count_tags = {m: len(tags_info) for m, tags_info in all_tags_data.items()}
242242
models_data = {m: {**model_info, "tag_count": count_tags.get(m)} if count_tags.get(m, None) else model_info

0 commit comments

Comments
 (0)