Пример #1
0
def team_singular_greek(request, team):
	helper = RelayFunctions()

	cool = helper.company_specific_greek_candles(team)

	response = json.dumps(cool)
	return HttpResponse(response, mimetype="application/json")
Пример #2
0
def company_specific_greek_candles(request, company):
	helper = RelayFunctions()

	all_company_specific_greek_candles = []

	for team in Team.objects.filter(company = company):
			all_company_specific_greek_candles.append(helper.company_specific_greek_candles(model_to_dict(team)['id']))

	newlist = sorted(all_company_specific_greek_candles, key=itemgetter('team_event_milestone_candles'), reverse = True)

	response = json.dumps(newlist)
	return HttpResponse(response, mimetype="application/json")