mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-14 10:35:22 +00:00
Ignore non-issues
This commit is contained in:
parent
fa5fb33793
commit
d5768cf101
|
@ -1,8 +1,5 @@
|
||||||
version = 1
|
version = 1
|
||||||
|
|
||||||
[[analyzers]]
|
|
||||||
name = "sql"
|
|
||||||
|
|
||||||
[[analyzers]]
|
[[analyzers]]
|
||||||
name = "python"
|
name = "python"
|
||||||
|
|
||||||
|
|
|
@ -85,14 +85,14 @@ def create_app(): # pylint: disable=R0914
|
||||||
return User.query.filter_by(alt_id=user_id).first()
|
return User.query.filter_by(alt_id=user_id).first()
|
||||||
|
|
||||||
@login_manager.unauthorized_handler
|
@login_manager.unauthorized_handler
|
||||||
def unauthorized():
|
def unauthorized(): # skipcq: PTC-W0065
|
||||||
error = 401
|
error = 401
|
||||||
msg = "You are not authorized to view this page!!!!"
|
msg = "You are not authorized to view this page!!!!"
|
||||||
return render_template("error.html", error=error, msg=msg), error
|
return render_template("error.html", error=error, msg=msg), error
|
||||||
|
|
||||||
# ERROR HANDLERS
|
# ERROR HANDLERS
|
||||||
@app.errorhandler(Exception)
|
@app.errorhandler(Exception)
|
||||||
def error_page(err): # noqa
|
def error_page(err): # skipcq: PTC-W0065
|
||||||
"""
|
"""
|
||||||
Error handlers, if the error is not a HTTP error, return 500
|
Error handlers, if the error is not a HTTP error, return 500
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -10,7 +10,7 @@ class OnlyLegs(Application):
|
||||||
Gunicorn application
|
Gunicorn application
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, options={}): # pylint: disable=W0102, W0231
|
def __init__(self, options={}): # pylint: disable=W0102 skipcq: PYL-W0231
|
||||||
self.usage = None
|
self.usage = None
|
||||||
self.callable = None
|
self.callable = None
|
||||||
self.options = options
|
self.options = options
|
||||||
|
@ -27,7 +27,7 @@ class OnlyLegs(Application):
|
||||||
return cfg
|
return cfg
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def prog(): # pylint: disable=C0116, E0202
|
def prog(): # pylint: disable=C0116 skipcq: PYL-E0202
|
||||||
return "OnlyLegs"
|
return "OnlyLegs"
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
|
|
Loading…
Reference in a new issue