finish up correcting last typos left in project

This commit is contained in:
Xevion
2020-03-08 22:25:23 -05:00
parent 10d2be14da
commit eaf046a78f
4 changed files with 11 additions and 10 deletions

View File

@@ -131,7 +131,7 @@ def user_info():
def index(): def index():
jobs = [ jobs = [
"Student Photographer", "Student Photographer",
"Highschool Student", "High-school Student",
"Web Developer", "Web Developer",
"Python Developer", "Python Developer",
"Software Engineer", "Software Engineer",

View File

@@ -45,9 +45,10 @@ basic_responses = {
} }
# A simple function among the routes to determine what should be returned. # A simple function among the routes to determine what should be returned. Not particularly sure how request context
# 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. # is passed, but it seems that either it passed or can access current_user's authentication/role's properly,
# Shows error in full context IF authenticated + admin, otherwise basic error description, OTHERWISE a basic error message. # so no problem. Shows error in full context IF authenticated + admin, otherwise basic error description, OTHERWISE a
# basic error message.
def errorCheck(e): def errorCheck(e):
if type(e) in basic_responses.keys(): if type(e) in basic_responses.keys():
response = f"{basic_responses[type(e)]}" response = f"{basic_responses[type(e)]}"

View File

@@ -7,9 +7,9 @@ from datetime import datetime
from app import db 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 # Returned when a erroring status code is returned. May end up hitting false positives, where the file was still
# yet a erroring status code was returned. May be a good measure to always disconnect when a error code is found. # produced properly yet a erroring status code was returned. May be a good measure to always disconnect when a error
# Takes precedence over CouldNotDownload and CouldNotDecode exceptions. # code is found. Takes precedence over CouldNotDownload and CouldNotDecode exceptions.
class CouldNotProcess(Exception): class CouldNotProcess(Exception):
pass pass
@@ -19,8 +19,8 @@ class CouldNotDownload(Exception):
pass pass
# When a JSON returning command returns undecodable JSON # When a JSON returning command returns malformed JSON
# This shouldn't occur and will only be available when a unforseen error occurs where JSON cannot be read, # 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! # yet a non-erroring status code was returned!
class CouldNotDecode(Exception): class CouldNotDecode(Exception):
pass pass

View File

@@ -57,7 +57,7 @@ def process_data(data):
n = len(scores.values()) n = len(scores.values())
ind = np.arange(n) ind = np.arange(n)
width = 0.55 width = 0.55
# Resizer figuresize to be 2.0 wider # Resize figuresize to be 2.0 wider
plt.figure(figsize=(10.0, 6.0)) plt.figure(figsize=(10.0, 6.0))
# Stacked Bars # Stacked Bars
p1 = plt.bar(ind, explicit, width) p1 = plt.bar(ind, explicit, width)