File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ def get_all_choosen_comments() -> List[ChoosenComment]:
7373 file_content = github_api .get_raw_data (f .download_url )
7474 chosen_comments += extract_python_comments (file_content , f .html_url )
7575
76+ logging .info (f'Current number of comments: { len (chosen_comments )} ' )
77+
7678 if len (chosen_comments ) >= MAX_COMMENT_NUMBER :
7779 break
7880 return chosen_comments
Original file line number Diff line number Diff line change @@ -40,5 +40,5 @@ def get_raw_data(url: str):
4040 return data .text
4141
4242def get_trending_page ():
43- data = _make_get_request ('https://github.com/trending? spoken_language_code=en' )
43+ data = _make_get_request ('https://github.com/trending/python?since=daily& spoken_language_code=en' ) #TODO: Fix this when more than 1 language is supported
4444 return data .text
Original file line number Diff line number Diff line change 55
66origins = [
77 'http://localhost:3000' ,
8- 'https://random-github-production-frontend-spsikwsyha-ew.a.run.app '
8+ 'https://randomgithub.com '
99]
1010
1111app = FastAPI ()
You can’t perform that action at this time.
0 commit comments