Update prompt message for programming language input in main.py
This commit is contained in:
parent
db8fcdae42
commit
6b952712e4
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -35,7 +35,7 @@ def get_random_repo(language=None):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# prompt user to enter a programming language (optional)
|
# prompt user to enter a programming language (optional)
|
||||||
language = input("Enter a programming language: ").strip()
|
language = input("Enter a programming language (leave blank for random): ").strip()
|
||||||
|
|
||||||
repo = get_random_repo(language=language if language else None)
|
repo = get_random_repo(language=language if language else None)
|
||||||
if repo:
|
if repo:
|
||||||
|
@ -46,4 +46,4 @@ def main():
|
||||||
print("No repos found")
|
print("No repos found")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue