Skip to content

Commit 92a1906

Browse files
committed
fixed calls
1 parent 7a85ee0 commit 92a1906

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

commits_parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def log_repository_commits(client: Github, repository, csv_name, start, finish,
2222
branches = []
2323
match branch:
2424
case 'all':
25-
api = GitHubRepoAPI(client)
25+
api = GitHubRepoAPI.GitHubRepoAPI(client)
2626
branches = api.get_branches(repository)
2727
for branch in branches:
2828
branches.append(branch.name)
@@ -34,7 +34,7 @@ def log_repository_commits(client: Github, repository, csv_name, start, finish,
3434
for branch in branches:
3535
print(f'Processing branch {branch}')
3636
# Используем обёртку для получения коммитов
37-
api = GitHubRepoAPI(client)
37+
api = GitHubRepoAPI.GitHubRepoAPI(client)
3838
commits = api.get_commits(repository)
3939
for commit in commits:
4040
if (
@@ -63,7 +63,7 @@ def log_commits(
6363
):
6464
logger.log_to_csv(csv_name, FIELDNAMES)
6565

66-
api = GitHubRepoAPI(client) # Используем обёртку
66+
api = GitHubRepoAPI.GitHubRepoAPI(client) # Используем обёртку
6767

6868
for repo_name in working_repos:
6969
try:

contributors_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_contributors_stats(repository: Repository) -> dict:
5757
contributors_stats = dict()
5858

5959
# Используем обёртку для получения коммитов
60-
api = GitHubRepoAPI(repository._github)
60+
api = GitHubRepoAPI.GitHubRepoAPI(repository._github)
6161
commits = api.get_commits(repository)
6262

6363
for commit in commits:
@@ -81,7 +81,7 @@ def log_contributors(
8181
):
8282
logger.log_to_csv(csv_name, FIELDNAMES)
8383

84-
api = GitHubRepoAPI(client) # Используем обёртку
84+
api = GitHubRepoAPI.GitHubRepoAPI(client) # Используем обёртку
8585

8686
for repo in working_repos:
8787
try:

git_logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def login(token):
1919
return client
2020

2121
def get_next_repo(client: Github, repositories):
22-
api = GitHubRepoAPI(client) # Используем обёртку
22+
api = GitHubRepoAPI.GitHubRepoAPI(client) # Используем обёртку
2323
with open(repositories, 'r') as file:
2424
list_repos = [x for x in file.read().split('\n') if x]
2525
print(list_repos)

invites_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def login(token):
1919
return client
2020

2121
def get_next_repo(client: Github, repositories):
22-
api = GitHubRepoAPI(client) # Используем обёртку
22+
api = GitHubRepoAPI.GitHubRepoAPI(client) # Используем обёртку
2323
with open(repositories, 'r') as file:
2424
list_repos = [x for x in file.read().split('\n') if x]
2525
print(list_repos)

issues_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def log_repository_issues(client: Github, repository: Repository, csv_name, toke
175175
def log_issues(client: Github, working_repo, csv_name, token, start, finish, fork_flag):
176176
logger.log_to_csv(csv_name, FIELDNAMES)
177177

178-
api = GitHubRepoAPI(client) # Используем обёртку
178+
api = GitHubRepoAPI.GitHubRepoAPI(client) # Используем обёртку
179179

180180
for repo_name in working_repo:
181181
try:

pull_requests_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def get_related_issues(pull_request_number, repo_owner, repo_name, token):
9494
def log_repositories_pr(
9595
client: Github, repository: Repository, csv_name, token, start, finish, log_comments=False,
9696
):
97-
api = GitHubRepoAPI(client)
97+
api = GitHubRepoAPI.GitHubRepoAPI(client)
9898
pulls = api.get_pull_requests(repository)
9999
for pull in pulls:
100100
if (
@@ -173,7 +173,7 @@ def log_pull_requests(
173173
):
174174
logger.log_to_csv(csv_name, FIELDNAMES)
175175

176-
api = GitHubRepoAPI(client) # Используем обёртку
176+
api = GitHubRepoAPI.GitHubRepoAPI(client) # Используем обёртку
177177

178178
for repo_name in working_repos:
179179
try:

0 commit comments

Comments
 (0)