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
Snakes 2022-09-26 21:44:34 -04:00
parent 15a9641d35
commit 528d26b094
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def marseys(v):
if sort == "usage": marseys = marseys.order_by(Marsey.count.desc(), User.username).all() if sort == "usage": marseys = marseys.order_by(Marsey.count.desc(), User.username).all()
else: marseys = marseys.order_by(User.username, Marsey.count.desc()).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: for marsey, user in marseys:
if f'{marsey.name}.png' in original: if f'{marsey.name}.png' in original:
marsey.og = f'{marsey.name}.png' marsey.og = f'{marsey.name}.png'