mirror of
https://github.com/EvanLi/Github-Ranking.git
synced 2026-11-06 14:39:08 +00:00
Edit python script.
This commit is contained in:
1 parent
9f1d6b062e
commit
9143299d84
1 file changed
+3
-2
@@ -29,8 +29,9 @@ def save_ranking(file_name,method,repos):
|
||||
count = 0
|
||||
for repo in repos:
|
||||
count += 1
|
||||
if repo['description'] is not None:
|
||||
repo_description = repo['description'].replace('|','\|') #in case there is '|' in description
|
||||
repo_description = repo['description']
|
||||
if repo_description is not None:
|
||||
repo_description = repo_description.replace('|','\|') #in case there is '|' in description
|
||||
f.write('| {} | [{}]({}) | {} | {} | {} | {} | {} | {} |\n'.format(count,
|
||||
repo['name'],
|
||||
repo['html_url'],
|
||||
|
||||
Reference in new issue
Block a user