Skip to content

Commit

Permalink
Share repo handle
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Oct 9, 2023
1 parent 3aab372 commit 87e2da7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions googlefonts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
LANGUAGE_COMMENTS = LanguageComments(LoadLanguages())

A_YEAR_AGO = datetime.now(timezone.utc) - timedelta(days=365)
GF_REPO = GITHUB.get_repo("google/fonts")


class GoogleFont:
Expand Down Expand Up @@ -151,7 +152,6 @@ def seems_gfr(self):

@cached_property
def recent_commits(self):
GF_REPO = GITHUB.get_repo("google/fonts")
try:
commits = GF_REPO.get_commits(path=self.directory, since=A_YEAR_AGO)
return list(commits[0:10])
Expand All @@ -160,7 +160,6 @@ def recent_commits(self):

@cached_property
def recent_pulls(self):
GF_REPO = GITHUB.get_repo("google/fonts")
try:
pulls = []
pull_numbers = set()
Expand Down

0 comments on commit 87e2da7

Please sign in to comment.