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():
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))

View File

@ -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":

View File

@ -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