mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-06 03:16:57 -06:00
finish up correcting last typos left in project
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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)]}"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user