Commit 33f362f1 authored by Michal Čihař's avatar Michal Čihař

Remove unused import

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 7540d39c
...@@ -312,7 +312,6 @@ def more_like(pk, source, top=5): ...@@ -312,7 +312,6 @@ def more_like(pk, source, top=5):
def clean_search_unit(pk, lang): def clean_search_unit(pk, lang):
"""Cleanups search index on unit deletion.""" """Cleanups search index on unit deletion."""
if appsettings.OFFLOAD_INDEXING: if appsettings.OFFLOAD_INDEXING:
from weblate.trans.models.search import IndexUpdate
add_index_update(pk, False, True, lang) add_index_update(pk, False, True, lang)
else: else:
delete_search_unit(pk, lang) delete_search_unit(pk, lang)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment