Skip to content

Commit

Permalink
Code cleanup and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BenOSanders committed Jul 30, 2019
1 parent 97cfbf8 commit abd3255
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions autostack/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,3 @@ def main():
custom_query()
break
continue

if __name__ == "__main__":
# execute only if run as a script
main()
7 changes: 6 additions & 1 deletion autostack/option_features/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@

def custom_query():
'''
Allows the user to submit a custom query to search on Stack Overflow.
Searches Stack Overflow using a custom search query from the user.
Called after three "no"s from the user. This function prompts the user
for a string to serach on Stack Overflow. Using the same for loop as
main, questions and accepted answers are printed to the terminal for the
user to view.
'''

print('Enter a custom query: ', end='')
Expand Down

0 comments on commit abd3255

Please sign in to comment.