_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())
raiseException("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
ifnoturl.endswith("/"):
url+="/"
...
...
@@ -232,6 +232,8 @@ class Report:
t=db['last_check_time']
if (time.time()-t)<self._remote_check_cooldown_seconds: