1
0
Fork 0

Use variable instead of string

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
André Jaenisch 2022-11-13 16:59:05 +01:00
parent dc14670a2c
commit 530d7de309
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
9 changed files with 27 additions and 27 deletions

View file

@ -7,7 +7,7 @@ from django.apps import apps
from django.db import IntegrityError, transaction
from bookwyrm.connectors import ConnectorException, get_data
from bookwyrm.tasks import app
from bookwyrm.tasks import app, MEDIUM
logger = logging.getLogger(__name__)
@ -202,7 +202,7 @@ class ActivityObject:
return data
@app.task(queue="medium_priority")
@app.task(queue=MEDIUM)
@transaction.atomic
def set_related_field(
model_name, origin_model_name, related_field_name, related_remote_id, data