| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -219,7 +219,6 @@ def timetable(self, start, end, **type_and_id): | |||
| 219 | 219 | ||
| 220 | 220 | parameters = self._create_date_param(end, start, | |
| 221 | 221 | id=int(element_id), type=element_type_table[element_type]) | |
| 222 | - parameters = parameters["options"] # getTimetable is without options! | ||
| 223 | 222 | return objects.PeriodList, 'getTimetable', parameters | |
| 224 | 223 | ||
| 225 | 224 | @result_wrapper | |
@@ -347,7 +346,7 @@ def timetable_with_absences(self, start, end): | |||
| 347 | 346 | :rtype: :py:class:`webuntis.objects.AbsencesList` | |
| 348 | 347 | """ | |
| 349 | 348 | ||
| 350 | - parameters = self._create_date_param(end, start) | ||
| 349 | + parameters = { u'options': self._create_date_param(end, start) } | ||
| 351 | 350 | ||
| 352 | 351 | return objects.AbsencesList, 'getTimetableWithAbsences', parameters | |
| 353 | 352 | ||
@@ -357,12 +356,10 @@ def _create_date_param(end, start, **kwargs): | |||
| 357 | 356 | json_end = utils.datetime_utils.format_date(end) | |
| 358 | 357 | if json_start > json_end: | |
| 359 | 358 | raise ValueError('Start can\'t be later than the end.') | |
| 360 | - parameters = { | ||
| 361 | - "options": dict({ | ||
| 359 | + parameters = dict({ | ||
| 362 | 360 | 'startDate': json_start, | |
| 363 | 361 | 'endDate': json_end, | |
| 364 | 362 | }, **kwargs) | |
| 365 | - } | ||
| 366 | 363 | return parameters | |
| 367 | 364 | ||
| 368 | 365 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments