Changing functions to camel case.

This commit is contained in:
ClaytonWWilson 2018-07-17 09:13:16 -04:00
parent 46d20e69bc
commit b2efb9cf0b
3 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ from checks import getToken
def wait(): def wait():
input("Press enter to continue.") input("Press enter to continue.")
def clear_screen(): def clearScreen():
IS_WINDOWS = os.name == "nt" IS_WINDOWS = os.name == "nt"
if IS_WINDOWS: if IS_WINDOWS:
os.system("cls") os.system("cls")
@ -52,7 +52,7 @@ def refreshToken():
obj.close() obj.close()
print("\nNew token acquired!\n") print("\nNew token acquired!\n")
break break
clear_screen() clearScreen()
else: else:
login["TOKEN"] = getToken(LOGIN_DATA) login["TOKEN"] = getToken(LOGIN_DATA)
login["TIMESTAMP"] = str(datetime.datetime.now().replace(tzinfo=None)) login["TIMESTAMP"] = str(datetime.datetime.now().replace(tzinfo=None))

View File

@ -2,7 +2,7 @@ import os
from login import login from login import login
from actions import wait from actions import wait
from actions import clear_screen from actions import clearScreen
from actions import clearFolders from actions import clearFolders
from actions import installReqs from actions import installReqs
from actions import refreshToken from actions import refreshToken
@ -12,7 +12,7 @@ from search import search
# TODO fix naming convention for all variables and functions # TODO fix naming convention for all variables and functions
while True: while True:
clear_screen() clearScreen()
print("=============================\n" print("=============================\n"
"Image fetcher for theTVDB.com\n" "Image fetcher for theTVDB.com\n"
"=============================\n") "=============================\n")
@ -30,11 +30,11 @@ while True:
search() search()
wait() wait()
elif choice == "2": elif choice == "2":
clear_screen() clearScreen()
clearFolders() clearFolders()
wait() wait()
elif choice == "3": # TODO add a printout that tells the user who is currently logged in elif choice == "3": # TODO add a printout that tells the user who is currently logged in
clear_screen() clearScreen()
login() login()
wait() wait()
elif choice == "4": elif choice == "4":

View File

@ -7,7 +7,7 @@ import requests
import urllib.parse import urllib.parse
from actions import clearFolders from actions import clearFolders
from actions import clear_screen from actions import clearScreen
from actions import downloadImages from actions import downloadImages
from actions import refreshToken from actions import refreshToken
from actions import searchImages from actions import searchImages
@ -65,7 +65,7 @@ def search():
title = -1 title = -1
print() print()
clear_screen() clearScreen()
while title < 0 or title > len(searchResults["data"]) - 1: # Looping until the user chooses while title < 0 or title > len(searchResults["data"]) - 1: # Looping until the user chooses
print("Results:") # a series from the printed list print("Results:") # a series from the printed list
count = 1 # or they input '0' to cancel count = 1 # or they input '0' to cancel