From 0a9badc22e4af80cc2f6aa5f1e47d45bb5d3dcb1 Mon Sep 17 00:00:00 2001 From: Tue Herlau <tuhe@dtu.dk> Date: Fri, 19 Jul 2024 14:50:39 +0200 Subject: [PATCH] minor --- setup.py | 2 +- src/coursebox.egg-info/PKG-INFO | 2 +- src/coursebox/student_files/student_files.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index d696390..18baff2 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="coursebox", - version="0.1.20.3", + version="0.1.20.5", author="Tue Herlau", author_email="tuhe@dtu.dk", description="A course management system currently used at DTU", diff --git a/src/coursebox.egg-info/PKG-INFO b/src/coursebox.egg-info/PKG-INFO index d412688..e4410d9 100644 --- a/src/coursebox.egg-info/PKG-INFO +++ b/src/coursebox.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: coursebox -Version: 0.1.20.3 +Version: 0.1.20.4 Summary: A course management system currently used at DTU Home-page: https://lab.compute.dtu.dk/tuhe/coursebox Author: Tue Herlau diff --git a/src/coursebox/student_files/student_files.py b/src/coursebox/student_files/student_files.py index 2d53472..7934aef 100644 --- a/src/coursebox/student_files/student_files.py +++ b/src/coursebox/student_files/student_files.py @@ -37,7 +37,7 @@ def setup_student_files(run_files=True, if len(core_conf['projects_all']) > 0: PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0] else: - PACKAGE = list(core_conf['weeks_all'].values()).pop()['module_public'].split(".")[0] + PACKAGE = [w for w in core_conf['weeks_all'].values() if 'module_public' in w][0]['module_public'].split(".")[0] if censor_files: assert not run_files, "You cannot run files while you are censoring them -- your scripts will crash. Call with run_files=False." -- GitLab