Skip to content
Snippets Groups Projects
Commit 7a47f974 authored by tuhe's avatar tuhe
Browse files

Fixes

parent 4eb97ecb
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh: ...@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup( setuptools.setup(
name="coursebox", name="coursebox",
version="0.1.20.9", version="0.1.20.13",
author="Tue Herlau", author="Tue Herlau",
author_email="tuhe@dtu.dk", author_email="tuhe@dtu.dk",
description="A course management system currently used at DTU", description="A course management system currently used at DTU",
......
Metadata-Version: 2.2 Metadata-Version: 2.2
Name: coursebox Name: coursebox
Version: 0.1.20.9 Version: 0.1.20.13
Summary: A course management system currently used at DTU Summary: A course management system currently used at DTU
Home-page: https://lab.compute.dtu.dk/tuhe/coursebox Home-page: https://lab.compute.dtu.dk/tuhe/coursebox
Author: Tue Herlau Author: Tue Herlau
......
...@@ -471,7 +471,7 @@ def class_information(verbose=False, ...@@ -471,7 +471,7 @@ def class_information(verbose=False,
d['sections'] = sections d['sections'] = sections
# current_lecture = -2 # current_lecture = -2
from datetime import timedelta
# l['date'] - datetime.timedelta(days=7) # l['date'] - datetime.timedelta(days=7)
# Long before firrst. # Long before firrst.
......
...@@ -18,7 +18,6 @@ def get_paths(): ...@@ -18,7 +18,6 @@ def get_paths():
if layout is None: if layout is None:
layout = {} layout = {}
root_02450public = os.path.normpath(CDIR + "/../..") root_02450public = os.path.normpath(CDIR + "/../..")
root_02450private = os.path.normpath( layout.get('private', root_02450public + "/../%sprivate"%num )) root_02450private = os.path.normpath( layout.get('private', root_02450public + "/../%sprivate"%num ))
root_02450instructors = os.path.normpath( layout.get('instructors', root_02450private + "/../%sinstructors"%num)) root_02450instructors = os.path.normpath( layout.get('instructors', root_02450private + "/../%sinstructors"%num))
......
...@@ -354,7 +354,7 @@ def search_projects(paths, sheet_number, patterns): ...@@ -354,7 +354,7 @@ def search_projects(paths, sheet_number, patterns):
students = [] students = []
print("> Finding student ID. Warning: The pdf file", pdf, "appers to have no text content.") print("> Finding student ID. Warning: The pdf file", pdf, "appers to have no text content.")
else: 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 gps[id] += students
# Collect from .tex files: # Collect from .tex files:
...@@ -365,7 +365,7 @@ def search_projects(paths, sheet_number, patterns): ...@@ -365,7 +365,7 @@ def search_projects(paths, sheet_number, patterns):
id = group_id_from_file(tex) id = group_id_from_file(tex)
tex_parsed = recursive_tex_collect(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()]) 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 gps[id] += students
for id, students in gps.items(): for id, students in gps.items():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment