Skip to content

Commit

Permalink
Merge branch 'master' into add_spanish
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Mar 15, 2022
2 parents 27e9742 + 37f0c1e commit 1e4c345
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bothub/common/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from bothub import translate
from bothub.api.grpc.connect_grpc_client import ConnectGRPCClient
from bothub.celery import app
from bothub.common.documents import RepositoryNLPLogDocument
from bothub.common.models import (
RepositoryQueueTask,
RepositoryReports,
Expand Down Expand Up @@ -271,7 +270,6 @@ def delete_nlp_logs():
max_id = batch[-1].id
with transaction.atomic():
for log in batch:
RepositoryNLPLogDocument.search().query("match", pk=log.pk).delete()
log.delete()

num_updated += len(batch)
Expand Down

0 comments on commit 1e4c345

Please sign in to comment.