Skip to content

Commit

Permalink
Fix pr issue fetch rate limit (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
R055A committed Oct 24, 2023
1 parent 8ddffd0 commit 46323af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/db/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def __init__(self):
self.views = int(self.__db["views"]["count"])
self.views_from_date = self.__db["views"]["from"]
self.views_to_date = self.__db["views"]["to"]
self.pull_requests = int(self.__db["pull_requests"]["count"])
self.issues = int(self.__db["issues"]["count"])
self.pull_requests = int(self.__db["pull_requests"])
self.issues = int(self.__db["issues"])

def __update_db(self) -> None:
try:
Expand All @@ -52,9 +52,9 @@ def set_views_to_date(self, date: str) -> None:
self.__update_db()

def set_pull_requests(self, pull_requests_count: int) -> None:
self.__db["pull_requests"]["count"] = str(pull_requests_count)
self.__db["pull_requests"] = str(pull_requests_count)
self.__update_db()

def set_issues(self, issues_count: int) -> None:
self.__db["issues"]["count"] = str(issues_count)
self.__db["issues"] = str(issues_count)
self.__update_db()

0 comments on commit 46323af

Please sign in to comment.