Formatted with python-black

This commit is contained in:
Callum Leslie committed 2022-06-27 16:22:01 +01:00
1 parent dba11ea1e3
commit 69f4f59bb6
11 files changed
+95 -59

No files matched your search

+4 -2
View File
@@ -7,10 +7,12 @@ def cleanup() -> int:
Returns:
int: How many files were deleted
"""
"""
if exists("./assets/temp"):
count = 0
files = [f for f in os.listdir(".") if f.endswith(".mp4") and "temp" in f.lower()]
files = [
f for f in os.listdir(".") if f.endswith(".mp4") and "temp" in f.lower()
]
count += len(files)
for f in files:
os.remove(f)