mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-04 05:46:14 +00:00
PyLint
This commit is contained in:
parent
83435f5372
commit
aa655a40a2
|
@ -1,3 +1,6 @@
|
||||||
|
"""
|
||||||
|
Extensions used by the application
|
||||||
|
"""
|
||||||
from flask_sqlalchemy import SQLAlchemy
|
from flask_sqlalchemy import SQLAlchemy
|
||||||
from flask_migrate import Migrate
|
from flask_migrate import Migrate
|
||||||
from flask_login import LoginManager
|
from flask_login import LoginManager
|
||||||
|
|
|
@ -77,8 +77,8 @@ class Metadata:
|
||||||
"raw": value,
|
"raw": value,
|
||||||
"formatted": (
|
"formatted": (
|
||||||
getattr(
|
getattr(
|
||||||
helpers,
|
helpers, # pylint: disable=E0602
|
||||||
mapping_val[key][1], # pylint: disable=E0602
|
mapping_val[key][1],
|
||||||
)(value)
|
)(value)
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,13 +78,9 @@ def image(image_id):
|
||||||
# Slice the list of IDs into chunks of the limit
|
# Slice the list of IDs into chunks of the limit
|
||||||
for j in total_images[i * limit : (i + 1) * limit]:
|
for j in total_images[i * limit : (i + 1) * limit]:
|
||||||
# Is our image in this chunk?
|
# Is our image in this chunk?
|
||||||
if image_id > j[-1]:
|
if image_id < j[-1]:
|
||||||
continue
|
|
||||||
else:
|
|
||||||
return_page = i + 1
|
return_page = i + 1
|
||||||
break
|
break
|
||||||
# Techically we dont need to go further since the image
|
|
||||||
# Is somewhere on this page
|
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"image.html",
|
"image.html",
|
||||||
|
|
Loading…
Reference in a new issue