diff --git a/app/routes.py b/app/routes.py index 989037a..492fe70 100644 --- a/app/routes.py +++ b/app/routes.py @@ -131,7 +131,7 @@ def user_info(): def index(): jobs = [ "Student Photographer", - "Highschool Student", + "High-school Student", "Web Developer", "Python Developer", "Software Engineer", diff --git a/app/sound.py b/app/sound.py index 1bfd351..3e63f9a 100644 --- a/app/sound.py +++ b/app/sound.py @@ -45,9 +45,10 @@ basic_responses = { } -# A simple function among the routes to determine what should be returned. -# Not particularly sure how request context is passed, but it seems that either it passed or can access current_user's authenitcation/role's properly, so no problem. -# Shows error in full context IF authenticated + admin, otherwise basic error description, OTHERWISE a basic error message. +# A simple function among the routes to determine what should be returned. Not particularly sure how request context +# is passed, but it seems that either it passed or can access current_user's authentication/role's properly, +# so no problem. Shows error in full context IF authenticated + admin, otherwise basic error description, OTHERWISE a +# basic error message. def errorCheck(e): if type(e) in basic_responses.keys(): response = f"{basic_responses[type(e)]}" diff --git a/app/sound_models.py b/app/sound_models.py index c251979..04a5e62 100644 --- a/app/sound_models.py +++ b/app/sound_models.py @@ -7,9 +7,9 @@ from datetime import datetime from app import db -# Returned when a erroring status code is returned. May end up hitting false positives, where the file was still produced properly -# yet a erroring status code was returned. May be a good measure to always disconnect when a error code is found. -# Takes precedence over CouldNotDownload and CouldNotDecode exceptions. +# Returned when a erroring status code is returned. May end up hitting false positives, where the file was still +# produced properly yet a erroring status code was returned. May be a good measure to always disconnect when a error +# code is found. Takes precedence over CouldNotDownload and CouldNotDecode exceptions. class CouldNotProcess(Exception): pass @@ -19,8 +19,8 @@ class CouldNotDownload(Exception): pass -# When a JSON returning command returns undecodable JSON -# This shouldn't occur and will only be available when a unforseen error occurs where JSON cannot be read, +# When a JSON returning command returns malformed JSON +# This shouldn't occur and will only be available when a unforeseen error occurs where JSON cannot be read, # yet a non-erroring status code was returned! class CouldNotDecode(Exception): pass diff --git a/app/spotify_explicit/process.py b/app/spotify_explicit/process.py index ffe5518..af161ec 100644 --- a/app/spotify_explicit/process.py +++ b/app/spotify_explicit/process.py @@ -57,7 +57,7 @@ def process_data(data): n = len(scores.values()) ind = np.arange(n) width = 0.55 - # Resizer figuresize to be 2.0 wider + # Resize figuresize to be 2.0 wider plt.figure(figsize=(10.0, 6.0)) # Stacked Bars p1 = plt.bar(ind, explicit, width)