add/remove blank lines for PEP + add BB_GRADEBOOKS_DIR, BB_SUBMISSIONS_DIR in settings.py to allow easy changing of dir names

This commit is contained in:
2024-02-26 20:48:45 +00:00
parent bf7aaa12f2
commit 08ffefa798
7 changed files with 28 additions and 30 deletions

View File

@@ -4,6 +4,7 @@ from py7zr import SevenZipFile, exceptions
from utils.settings import BAD_DIR_NAME
def mark_file_as_BAD(file: str, bad_exception: Exception) -> None:
try:
filename = os.path.basename(file)
@@ -73,4 +74,4 @@ def extract_file_to_dir(file_path: str, student_dir: str) -> None | Exception:
elif file_path.lower().endswith('.7z'):
extract_7z(file_path, student_dir)
else:
print(f"\n[ERROR] unknown file type: {file_path}\n", flush=True)
print(f'\n[ERROR] unknown file type: {file_path}\n', flush=True)