Skip to content
Snippets Groups Projects
Commit 88b9f607 authored by tuhe's avatar tuhe
Browse files

updatse

parent d301e28a
No related branches found
No related tags found
1 merge request!2Devel
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
......@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup(
name="coursebox",
version="0.1.19.6",
version="0.1.19.7",
author="Tue Herlau",
author_email="tuhe@dtu.dk",
description="A course management system currently used at DTU",
......
Metadata-Version: 2.1
Name: coursebox
Version: 0.1.19.5
Version: 0.1.19.7
Summary: A course management system currently used at DTU
Home-page: https://lab.compute.dtu.dk/tuhe/coursebox
Author: Tue Herlau
......
......@@ -398,9 +398,7 @@ def class_information(verbose=False,
nd = d['lectures'][r-1]['date'] + timedelta(days=int(d['handin_day_delta']))
ri['date'] = nd
ri['html'] = f"{nd.day} {nd.strftime('%b')}"
ri = {**ri, **date2format(nd)}
d['reports_info'][k] = ri
......
......@@ -426,6 +426,7 @@ def fix_all_shared_files(paths=None, dosvg=False,compile_templates=True, verbose
if os.path.isdir(out):
# I feel we need to convert the SVG images?
fix_shared(paths, out, pdf2png=dosvg, dosvg=dosvg, compile_templates=compile_templates, verbose=verbose) # , dosvg=dosvg <--- please update coursebox (script broken as is)
else:
print("Coursebox> No documentation shared directory. This is very, very odd indeed. I am stopping now. ")
......@@ -72,9 +72,10 @@ def setup_student_files(run_files=True,
censor_file(init_dest)
# Check for exclusion mask.
exclude = info_paths.core_conf.get('student_files', {}).get('exclude', [])
exclude = list( info_paths.core_conf.get('student_files', {}).get('exclude', []) )
if extra_dirs is None:
extra_dirs = info_paths.core_conf.get('student_files', {}).get('extra_dirs', [])
extra_dirs = list(info_paths.core_conf.get('student_files', {}).get('extra_dirs', []))
print("Extra dirs are", extra_dirs)
exclude += [f'tests_week{w if w >= 10 else f"0{w}"}.py' for w in range(0,14) if w not in week]
......@@ -222,6 +223,10 @@ def fix_hw(paths, info, hw, out, output_dir, run_files=False, cut_files=False, c
run_files=run_files, cut_files=cut_files, license_head=info.get('code_copyright', None),
censor_files=censor_files,verbose=verbose,package_base_dir=package_base_dir)
if "tests" in hw['base']:
print(hw)
print("Doing the base.")
if include_solutions:
wk = hw['base'].split("/")[-1]
sp = paths['02450students'] + "/solutions/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment