From de88a29673622e3265b3a1989cddc9ce32570c73 Mon Sep 17 00:00:00 2001 From: fefa4ka Date: Wed, 2 Nov 2016 20:25:20 +0300 Subject: [PATCH] fix --- trademark/models.py | 2 -- trademark/templates/trademark/form.html | 2 +- trademark/views.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) 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]