diff --git a/setup.py b/setup.py index 9746aef535ce31103828d9ed0f3b75f02b00d255..3bc1320214f81557926579382afeb7da2d4895d6 100755 --- 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.9", + version="0.1.20.13", 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 4f9cbecdd117062ef27cd85afbb97d22c8e4ff81..35cedfbbca25be35ec3dbd3ec0d1974a18ce5a38 100644 --- a/src/coursebox.egg-info/PKG-INFO +++ b/src/coursebox.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.2 Name: coursebox -Version: 0.1.20.9 +Version: 0.1.20.13 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/core/info.py b/src/coursebox/core/info.py index 3e351d2e1c1e4d47f2779f2baf6ccd57d0935a4c..07dd4033709a0c09e33020b16e2ca2689b93d1eb 100755 --- a/src/coursebox/core/info.py +++ b/src/coursebox/core/info.py @@ -471,7 +471,7 @@ def class_information(verbose=False, d['sections'] = sections # current_lecture = -2 - from datetime import timedelta + # l['date'] - datetime.timedelta(days=7) # Long before firrst. diff --git a/src/coursebox/core/info_paths.py b/src/coursebox/core/info_paths.py index 042733e1919ef2d27ee5d66fa3080e7734f9e62d..886fe722d99d9db940b563eb0d94a8b0c8c13f41 100755 --- a/src/coursebox/core/info_paths.py +++ b/src/coursebox/core/info_paths.py @@ -18,7 +18,6 @@ def get_paths(): if layout is None: layout = {} - root_02450public = os.path.normpath(CDIR + "/../..") root_02450private = os.path.normpath( layout.get('private', root_02450public + "/../%sprivate"%num )) root_02450instructors = os.path.normpath( layout.get('instructors', root_02450private + "/../%sinstructors"%num)) diff --git a/src/coursebox/core/projects.py b/src/coursebox/core/projects.py index 65ba0d46b692e9a8e908a7363e02e3e6e4e09c31..33f2f44b0fba92010a70d7582d3fbba20af9c3b0 100755 --- a/src/coursebox/core/projects.py +++ b/src/coursebox/core/projects.py @@ -354,7 +354,7 @@ def search_projects(paths, sheet_number, patterns): students = [] print("> Finding student ID. Warning: The pdf file", pdf, "appers to have no text content.") else: - students = re.findall('s\d\d\d\d\d\d', pdf_parsed['content'], flags=re.IGNORECASE) + students = re.findall(r's\d\d\d\d\d\d', pdf_parsed['content'], flags=re.IGNORECASE) gps[id] += students # Collect from .tex files: @@ -365,7 +365,7 @@ def search_projects(paths, sheet_number, patterns): id = group_id_from_file(tex) tex_parsed = recursive_tex_collect(tex) tex_parsed = "\n".join([(l[:l.find("%")] if "%" in l else l) for l in tex_parsed.splitlines()]) - students = re.findall('s\d\d\d\d\d\d', tex_parsed, flags=re.IGNORECASE) + students = re.findall(r's\d\d\d\d\d\d', tex_parsed, flags=re.IGNORECASE) gps[id] += students for id, students in gps.items():