diff --git a/trademark/models.py b/trademark/models.py index a9e727b..98aba20 100644 --- a/trademark/models.py +++ b/trademark/models.py @@ -243,5 +243,3 @@ def update_fields(sender, instance, **kwargs): def create_searches(sender, instance, created, **kwargs): if created: instance.create_searches() - - SearchResultsThread(instance).start() diff --git a/trademark/templates/trademark/form.html b/trademark/templates/trademark/form.html index f9cc368..98bce55 100644 --- a/trademark/templates/trademark/form.html +++ b/trademark/templates/trademark/form.html @@ -165,7 +165,7 @@ $.post("/ru/trademarks/online-search/request/", { 'keyword': request}).done(function(data) { var tm_count = Math.floor(Math.random() * (3000000 - 1000000) + 1000000); - $('.trademark-search-count').text(tm_count + ' знаков') + $('.trademark-search-count').text(tm_count.toLocaleString() + ' знаков') $count.show(500); $identity.delay(3000).show(500); $contains.delay(6000).show(500); diff --git a/trademark/views.py b/trademark/views.py index 1beba1a..f76bfcb 100644 --- a/trademark/views.py +++ b/trademark/views.py @@ -59,7 +59,7 @@ class Search(generic.View): def get(self, request, slug): keyword = get_object_or_404(Keyword, slug=slug) - # keyword.load_results() + keyword.load_results() identity = keyword.searches.filter(similarity=146)[0]