Skip to content

Commit

Permalink
Cumulative Users Update
Browse files Browse the repository at this point in the history
  • Loading branch information
TheManWhoLikesToCode committed Jan 19, 2024
1 parent 1f18159 commit 6867257
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/Update-Cumulative-Users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: |
python analytics.py
- name: Save file
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add unique_visitors.csv cumulative_unique_visitors.png
git commit -m "Update unique visitors and cumulative visitors"
git push origin main
4 changes: 4 additions & 0 deletions analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
from urllib3.util.retry import Retry
from matplotlib import pyplot as plt
from requests.adapters import HTTPAdapter
from dotenv import load_dotenv

# Load environment variables
load_dotenv()

# Configure logging
logging.basicConfig(level=logging.INFO,
Expand Down
6 changes: 0 additions & 6 deletions todo.txt

This file was deleted.

0 comments on commit 6867257

Please sign in to comment.