Commits

Frederic De Groef  committed 5daabdc

Be less restrictive on the course mnemonic format

  • Participants
  • Parent commits cad6c36
  • Tags v1.5.4

Comments (0)

Files changed (2)

File geholwrapper.py

 def make_course_gehol_url(course_mnemo, weeks=conf.Q1_WEEKSPAN):
     host = conf.SCIENTIA_BACKEND_HOST
     template_url =  "http://%s/Reporting/Individual;Courses;name;%s?&days=1-6&height=0&width=0&periods=5-29&template=cours&weeks=%s"
-    return template_url % (host, course_mnemo, conf.Q1_WEEKSPAN)
+    return template_url % (host, course_mnemo, conf.Q2_WEEKSPAN)
 
 
 
 
 
 def is_course_mnemo_valid(course_mnemo):
-    return course_mnemo.isalnum() and len(course_mnemo) == 8
+    return course_mnemo.isalnum() and len(course_mnemo) < 32