From 091f12c389fe0fe8c5f38a2c03180b63322e6071 Mon Sep 17 00:00:00 2001 From: jefer94 Date: Thu, 4 Jul 2024 18:30:45 -0500 Subject: [PATCH] fix circular deps --- breathecode/registry/actions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/breathecode/registry/actions.py b/breathecode/registry/actions.py index 47f0af65f..7d59131c2 100644 --- a/breathecode/registry/actions.py +++ b/breathecode/registry/actions.py @@ -17,7 +17,6 @@ from breathecode.assessment.actions import create_from_asset from breathecode.authenticate.models import CredentialsGithub from breathecode.media.models import Media, MediaResolution -from breathecode.registry import tasks from breathecode.services.google_cloud.storage import Storage from breathecode.utils.views import set_query_parameter @@ -603,6 +602,9 @@ def get_thumbnail_url(self) -> tuple[str, bool]: Get thumbnail url for asset, the first element of tuple is the url, the second if is permanent redirect. """ + + from breathecode.registry import tasks + if not self.asset: return (self._get_default_url(), False) media = self._get_media()