Skip to content

Commit 6252c12

Browse files
authored
Merge pull request #7 from ArchieGugol/fix/missing_project_list
Fix/missing project list
2 parents de4b09f + d23e685 commit 6252c12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ghorgs/wrappers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def get_paged_content(self, session: requests.Session, url: str) -> list:
130130
all_data = []
131131
current_url = url
132132
last_url = None
133-
while last_url != current_url:
133+
while True:
134134
response = session.get(current_url)
135135
retry_after_raw = response.headers.get('Retry-After', None)
136136
if retry_after_raw:
@@ -143,6 +143,10 @@ def get_paged_content(self, session: requests.Session, url: str) -> list:
143143
assert isinstance(data, list)
144144
all_data.extend(data)
145145

146+
# Need to move this check here and change to 'while True' so the last page of the gitbub project will be processed
147+
if current_url == last_url:
148+
break
149+
146150
# check header
147151
if 'Link' in response.headers:
148152
# parse

0 commit comments

Comments
 (0)