You've already forked wakapi-readme-stats
remove redundant if-else
This commit is contained in:
6
main.py
6
main.py
@@ -424,10 +424,8 @@ def get_short_info(github):
|
|||||||
else:
|
else:
|
||||||
string += "> 🚫 " + translate["Not Opted to Hire"] + "\n > \n"
|
string += "> 🚫 " + translate["Not Opted to Hire"] + "\n > \n"
|
||||||
|
|
||||||
string += '> 📜 ' + translate['public repositories'] % public_repo + " " + '\n > \n' if public_repo > 1 else translate[
|
string += '> 📜 ' + translate['public repositories'] % public_repo + " " + '\n > \n'
|
||||||
'public repository'] % public_repo + ' \n > \n'
|
string += '> 🔑 ' + translate['private repositories'] % private_repo + " " +' \n > \n'
|
||||||
string += '> 🔑 ' + translate['private repositories'] % private_repo + " " +' \n\n' if private_repo > 1 else translate[
|
|
||||||
'private repository'] % public_repo + ' \n > \n'
|
|
||||||
|
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user