Edit python script.

This commit is contained in:
EvanLi committed 2018-12-27 21:29:38 +08:00
1 parent 9f1d6b062e
commit 9143299d84
1 file changed
+3 -2
+3 -2
View File
@@ -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'],