Skip to content

Commit

Permalink
fix circular deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Jul 4, 2024
1 parent 085cb3e commit 091f12c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion breathecode/registry/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 091f12c

Please sign in to comment.