Cleanup: remove tiny 'canteen' module, document main entry points

This commit is contained in:
Falco Duersch
2018-09-26 16:14:35 +02:00
committed by f4lco
parent 8edc5a0ced
commit 221d1ab964
4 changed files with 28 additions and 8 deletions
+9 -1
View File
@@ -11,11 +11,19 @@ URL = 'https://www.studentenwerk-potsdam.de' + \
def _param_json(to_serialize):
"""Obtain JSON string of an object without whitespace on delimiters."""
"""Obtain JSON string of an object without whitespace on delimiters.
:param dict it: The data structure to serialize
:return: JSON string, no whitespace between separators
"""
return json.dumps(to_serialize, separators=(',', ':'))
def download_menu(menu_params):
"""Download the menu for a specific canteen.
:param MenuParams menu_params: the target canteen
"""
context = {
'record': 'pages_66',
'path': 'tt_content.list.20.ddfmensa_ddfmensajson'