Skip to content

Commit

Permalink
chore: enable daily top 100 job
Browse files Browse the repository at this point in the history
  • Loading branch information
charlescol committed Feb 10, 2025
1 parent 2ff7f0a commit 30ec353
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/news-tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
X_BEARER_TOKEN_1: ${{ secrets.X_BEARER_TOKEN_2 }}
X_BEARER_TOKEN_2: ${{ secrets.X_BEARER_TOKEN_3 }}
X_BEARER_TOKEN_3: ${{ secrets.X_BEARER_TOKEN_4 }}
X_BEARER_TOKEN_4: ${{ secrets.X_BEARER_TOKEN_1 }} # Temporary
run: |
python src/news_tracker_run.py
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/top100-refresh.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "Top 100 Daily Refresh"

on:
# schedule:
# - cron: "0 15 * * *"
schedule:
- cron: "0 15 * * *"
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion src/news_tracker_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def run():
"""
Process accounts in batches of 100 per token, record the state for future executions.
"""
tokens = [os.getenv("X_BEARER_TOKEN_1"), os.getenv("X_BEARER_TOKEN_2"), os.getenv("X_BEARER_TOKEN_3"), os.getenv("X_BEARER_TOKEN_4")]
tokens = [os.getenv("X_BEARER_TOKEN_1"), os.getenv("X_BEARER_TOKEN_2"), os.getenv("X_BEARER_TOKEN_3")]
for token in tokens:
usernames = extractUsernames(useProgressFile=True)
response = fetchXStats(",".join(usernames), token)
Expand Down

0 comments on commit 30ec353

Please sign in to comment.