|
|
@ -6,7 +6,6 @@ import decimal |
|
|
|
from django.contrib.auth import get_user_model |
|
|
|
from django.contrib.auth.decorators import permission_required, \ |
|
|
|
user_passes_test |
|
|
|
from html.parser import HTMLParser |
|
|
|
from django import views as DjangoViews |
|
|
|
|
|
|
|
from django.db import transaction |
|
|
@ -55,16 +54,6 @@ def inverze_vzorecku_na_prepocet(body: decimal.Decimal, resitelu) -> decimal.Dec |
|
|
|
return round(body * (resitelu + 2) / 3, 1) |
|
|
|
|
|
|
|
|
|
|
|
class FirstTagParser(HTMLParser): |
|
|
|
def __init__(self, *args, **kwargs): |
|
|
|
self.firstTag = None |
|
|
|
super().__init__(*args, **kwargs) |
|
|
|
|
|
|
|
def handle_data(self, data): |
|
|
|
if self.firstTag == None: |
|
|
|
self.firstTag = data |
|
|
|
|
|
|
|
|
|
|
|
def histogram(seznam): |
|
|
|
d = {} |
|
|
|
for i in seznam: |
|
|
|