From b2efb9cf0bd2b35879175dfb3909347078b648bc Mon Sep 17 00:00:00 2001 From: ClaytonWWilson Date: Tue, 17 Jul 2018 09:13:16 -0400 Subject: [PATCH] Changing functions to camel case. --- actions.py | 4 ++-- launcher.py | 8 ++++---- search.py | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/actions.py b/actions.py index 60d9909..708a6ce 100644 --- a/actions.py +++ b/actions.py @@ -16,7 +16,7 @@ from checks import getToken def wait(): input("Press enter to continue.") -def clear_screen(): +def clearScreen(): IS_WINDOWS = os.name == "nt" if IS_WINDOWS: os.system("cls") @@ -52,7 +52,7 @@ def refreshToken(): obj.close() print("\nNew token acquired!\n") break - clear_screen() + clearScreen() else: login["TOKEN"] = getToken(LOGIN_DATA) login["TIMESTAMP"] = str(datetime.datetime.now().replace(tzinfo=None)) diff --git a/launcher.py b/launcher.py index e4b8625..f33e80b 100644 --- a/launcher.py +++ b/launcher.py @@ -2,7 +2,7 @@ import os from login import login from actions import wait -from actions import clear_screen +from actions import clearScreen from actions import clearFolders from actions import installReqs from actions import refreshToken @@ -12,7 +12,7 @@ from search import search # TODO fix naming convention for all variables and functions while True: - clear_screen() + clearScreen() print("=============================\n" "Image fetcher for theTVDB.com\n" "=============================\n") @@ -30,11 +30,11 @@ while True: search() wait() elif choice == "2": - clear_screen() + clearScreen() clearFolders() wait() elif choice == "3": # TODO add a printout that tells the user who is currently logged in - clear_screen() + clearScreen() login() wait() elif choice == "4": diff --git a/search.py b/search.py index 3359be6..4a8faa1 100644 --- a/search.py +++ b/search.py @@ -7,7 +7,7 @@ import requests import urllib.parse from actions import clearFolders -from actions import clear_screen +from actions import clearScreen from actions import downloadImages from actions import refreshToken from actions import searchImages @@ -65,7 +65,7 @@ def search(): title = -1 print() - clear_screen() + clearScreen() while title < 0 or title > len(searchResults["data"]) - 1: # Looping until the user chooses print("Results:") # a series from the printed list count = 1 # or they input '0' to cancel