Skip to content

Commit

Permalink
Refactor code for speed and clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jul 5, 2024
1 parent 2b04761 commit 8ee49c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Track the daily growth of GitHub stars over a time period to gauge the open-source popularity of various repositories.

[![Ultralytics Actions](https://github.com/ultralytics/stars/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/stars/actions/workflows/format.yml) <a href="https://ultralytics.com/discord"><img alt="Discord" src="https://img.shields.io/discord/1089800235347353640?logo=discord&logoColor=white&label=Discord&color=blue"></a>
[![Ultralytics Actions](https://github.com/ultralytics/stars/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/stars/actions/workflows/format.yml) <a href="https://ultralytics.com/discord"><img alt="Discord" src="https://img.shields.io/discord/1089800235347353640?logo=discord&logoColor=white&label=Discord&color=blue"></a> <a href="https://community.ultralytics.com"><img alt="Ultralytics Forums" src="https://img.shields.io/discourse/users?server=https%3A%2F%2Fcommunity.ultralytics.com&logo=discourse&label=Forums&color=blue"></a>

## 📌 Requirements

Expand Down
1 change: 1 addition & 0 deletions count_stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def run(
# days = (datetime.now() - date).total_seconds() / 86400 # compute number of days
# days = 30 # specify days directly, i.e. last 30 days

"""Counts GitHub stars for specified repositories over a given period and optionally saves user information."""
# Get repos
with open("repos.yaml", "r") as f:
repos = yaml.safe_load(f)["repositories"]
Expand Down

0 comments on commit 8ee49c1

Please sign in to comment.