forked from MarseyWorld/MarseyWorld
Fix /marseys missing listdir import.
Apparently the /marseys route was getting its listdir from one of
the `from os import listdir` removed in fa4dee419d
. static.py
already has an import os, so we just use the fully qualified
os.listdir.
master
parent
15a9641d35
commit
528d26b094
|
@ -27,7 +27,7 @@ def marseys(v):
|
|||
if sort == "usage": marseys = marseys.order_by(Marsey.count.desc(), User.username).all()
|
||||
else: marseys = marseys.order_by(User.username, Marsey.count.desc()).all()
|
||||
|
||||
original = listdir("/asset_submissions/marseys/original")
|
||||
original = os.listdir("/asset_submissions/marseys/original")
|
||||
for marsey, user in marseys:
|
||||
if f'{marsey.name}.png' in original:
|
||||
marsey.og = f'{marsey.name}.png'
|
||||
|
|
Loading…
Reference in New Issue