Skip to content
Snippets Groups Projects
Commit 649cda88 authored by tuhe's avatar tuhe
Browse files

Release for profound

parent a697b1c4
No related branches found
No related tags found
No related merge requests found
Metadata-Version: 2.1
Name: unitgrade
Version: 0.1.30.15
Version: 1.0.0.0
Summary: A student homework/exam evaluation framework build on pythons unittest framework.
Home-page: https://lab.compute.dtu.dk/tuhe/unitgrade
Author: Tue Herlau
......
......@@ -85,7 +85,7 @@ class Report:
pack_imports = []
individual_imports = []
_remote_check_cooldown_seconds = 1 # Seconds between remote check of report.
_remote_check_cooldown_seconds = 60*60*2 # Seconds between remote check of report.
nL = 120 # Maximum line width
_config = None # Private variable. Used when collecting results from student computers. Should only be read/written by teacher and never used for regular evaluation.
_setup_mode = False # True if test is being run in setup-mode, i.e. will not fail because of bad configurations, etc.
......@@ -219,8 +219,8 @@ class Report:
print(self._file())
raise Exception("Unitgrade> You are trying to check the remote version of a *_tests_complete.py-file, and you will potentially overwrite part of this file.")
print("CHECKING THE REMOTE VERSION. ")
# print("CHECKING THE REMOTE VERSION. ")
print("Unitgrade> Checking the remote version...")
url = self.url
if not url.endswith("/"):
url += "/"
......@@ -232,6 +232,8 @@ class Report:
t = db['last_check_time']
if (time.time() - t) < self._remote_check_cooldown_seconds:
return
db['last_check_time'] = time.time()
if self.url.startswith("https://gitlab"):
# Try to turn url into a 'raw' format.
......
__version__ = "0.1.30.15"
__version__ = "1.0.0.0"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment