Skip to content

Commit e75fff5

Browse files
[FIX] Крайне мелкие изменения
1 parent 79a2d80 commit e75fff5

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,16 @@ def print_info(open_n: int, close_n: int, old_n: int, name: str) -> None:
112112
print(GitHubAnalyzer.BASE_LINE)
113113

114114
def get_issues_by_param(self, url: str, param: str):
115-
page = 0
115+
page = 1
116116
issues = []
117-
while page := page + 1:
117+
while True:
118118
tmp = AnalyseException.get_error_or_json(self.session.get(f'{url}state={param}&page={page}&per_page=1000'))
119119
if len(tmp) == 0:
120120
break
121121
issues += list(filter(
122122
lambda issue: self.end > GitHubAnalyzer.get_input_date_by_format(issue['created_at']), tmp
123123
))
124+
page += 1
124125
return issues
125126

126127
def show_issues_info(self) -> None:

requirements.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
attrs==20.3.0
21
certifi==2020.11.8
32
chardet==3.0.4
43
coverage==5.3
54
idna==2.10
6-
iniconfig==1.1.1
7-
packaging==20.4
8-
pluggy==0.13.1
9-
py==1.9.0
10-
pyparsing==2.4.7
115
requests==2.25.0
12-
six==1.15.0
13-
toml==0.10.2
146
urllib3==1.26.2

0 commit comments

Comments
 (0)