Skip to content

Commit 41ff654

Browse files
author
archiegugol
committed
Fixed endless loop because of missing else line 156
1 parent 5fff061 commit 41ff654

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ghorgs/wrappers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def get_paged_content(self, session: requests.Session, url: str) -> list:
143143
assert isinstance(data, list)
144144
all_data.extend(data)
145145

146-
# Archie> Need to add this check here so last page will be processed
146+
# Archie> Need to move this check here so last page will be processed for project
147147
if current_url == last_url:
148148
break
149149

@@ -153,6 +153,8 @@ def get_paged_content(self, session: requests.Session, url: str) -> list:
153153
parsed_link_header = parse_github_link_header(response.headers['Link'])
154154
current_url = parsed_link_header['next']
155155
last_url = parsed_link_header['last']
156+
else:
157+
last_url = current_url
156158
return all_data
157159

158160

0 commit comments

Comments
 (0)