Plural/Singular Wording GitHub data

“repository” for 1
“repositories” for >1
This commit is contained in:
Hedy Li
2020-08-03 09:53:31 +08:00
committed by GitHub
parent 646b01ef51
commit 3d644a0621

View File

@@ -409,8 +409,10 @@ def get_short_info(github):
else:
string += "> 🚫 Not opted to Hire\n > \n"
string += '> 📜 ' + str(public_repo) + ' Public Repository \n > \n'
string += '> 🔑 ' + str(private_repo) + ' Owned Private Repository \n\n'
string += '> 📜 ' + str(public_repo) + " Public Repositor"
string += 'ies \n > \n' if public_repo > 1 else 'y \n > \n'
string += '> 🔑 ' + str(private_repo) + " Owned Private Repositor"
string += 'ies \n\n' if private_repo > 1 else 'y \n > \n'
print(string)
return string