From 528d26b0941e7883e85b50a499456f17d263d18b Mon Sep 17 00:00:00 2001 From: TLSM Date: Mon, 26 Sep 2022 21:44:34 -0400 Subject: [PATCH] Fix /marseys missing listdir import. Apparently the /marseys route was getting its listdir from one of the `from os import listdir` removed in fa4dee419db6. static.py already has an import os, so we just use the fully qualified os.listdir. --- files/routes/static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/static.py b/files/routes/static.py index 7c504bfff..06dfc8ef6 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -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'