fix task
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
Silver Ghost 2023-02-10 11:47:17 +03:00
parent 8b4796e5d1
commit d8e2c1c0e2
No known key found for this signature in database

View File

@ -18,7 +18,7 @@ if AIRBRAKE_PROJECT_ID is not None and AIRBRAKE_PROJECT_KEY is not None:
@shared_task(bind=True, max_retries=3, default_retry_delay=60) @shared_task(bind=True, max_retries=3, default_retry_delay=60)
def get_url_content_task(url, user_id): def get_url_content_task(self, url, user_id):
data = get_content(url) data = get_content(url)
user = User.objects.get(pk=int(user_id)) user = User.objects.get(pk=int(user_id))