Python formatting

This commit is contained in:
Mouse Reeve 2022-03-04 12:42:43 -08:00
parent b0c0af9617
commit f26106fffd

View file

@ -19,7 +19,7 @@ class Command(BaseCommand):
"""compile themes"""
storage = StaticFilesStorage()
theme_files = list(get_files(storage, location="css/themes"))
theme_files = [t for t in theme_files if t[-5:] == '.scss']
theme_files = [t for t in theme_files if t[-5:] == ".scss"]
for filename in theme_files:
path = storage.path(filename)
content = sass.compile(
@ -27,6 +27,6 @@ class Command(BaseCommand):
include_paths=SassProcessor.include_paths,
)
basename, _ = os.path.splitext(path)
destination_filename = basename + '.css'
destination_filename = basename + ".css"
print(f"saving f{destination_filename}")
storage.save(destination_filename, ContentFile(content))