<div class="last-bid">
{{result.price}} ₽{% if result.discount %} /
{{result.discount}} ₽ - {{toPercent(result.price, result.discount)}}% {% endif
%}
</div>
@require_http_methods(["GET"])
def motherboard(request):
data = json.loads(readCsv('motherboard', '.').to_json(orient='records'))
return render(request, 'home/index.html', {"data": data, "toPercent": toPercent(price, discount)})