Commits

Frederic De Groef committed cad6c36

inject weekspan when getting a course calendar

  • Participants
  • Parent commits a4fb460

Comments (0)

Files changed (3)

File .idea/scopes/scope_settings.xml

+<component name="DependencyValidationManager">
+  <state>
+    <option name="SKIP_IMPORT_STATEMENTS" value="false" />
+  </state>
+</component>

File icalrenderer.py

 from geholwrapper import get_calendar, convert_course_calendar_to_ical
 from status import is_status_down, get_last_status_update
 from utils import is_course_mnemo_valid, render_course_notfound_page, render_deadline_exceeded_page
+import conf
 
 class IcalRenderer(webapp.RequestHandler):
     def get(self):
                 self._render_gehol_down_page(course_mnemo)
             else:
                 try:
-                    cal = get_calendar(course_mnemo)
+                    cal = get_calendar(course_mnemo, conf.Q2_WEEKSPAN)
                 except DownloadError,e:
                     logging.error("Could not fetch page before deadline")
                     render_deadline_exceeded_page(self)

File templates/foo.html

+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+        "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+    <title></title>
+</head>
+<body>
+
+</body>
+</html>