Beispiel #1
0
def schedule_user():
	
	document = str(request.args.get('document', ''))
	tipo = str(request.args.get('tipo', ''))
	json_data = cache.get(document)
	if(json_data == None):
		json_data =  schedule.getHtml(document,tipo)
		if len(json_data["horarios"]) != 0:
			cache.set(document, json_data, timeout=2 * 60 * 60)

	return jsonify(**json_data)
Beispiel #2
0
def hello():

	return schedule.getHtml(str(1019081910))