mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-06 01:16:47 -06:00
finish up correcting last typos left in project
This commit is contained in:
@@ -131,7 +131,7 @@ def user_info():
|
||||
def index():
|
||||
jobs = [
|
||||
"Student Photographer",
|
||||
"Highschool Student",
|
||||
"High-school Student",
|
||||
"Web Developer",
|
||||
"Python Developer",
|
||||
"Software Engineer",
|
||||
|
||||
@@ -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)]}"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user