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():
jobs = [
"Student Photographer",
"Highschool Student",
"High-school Student",
"Web Developer",
"Python Developer",
"Software Engineer",

View File

@@ -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)]}"

View File

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

View File

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