Skip to content

Commit

Permalink
fixed bug with dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr committed Nov 12, 2024
1 parent 73d9b6f commit 9b0d213
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion breathecode/authenticate/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from capyc.core.managers import feature

flags = feature._flags
flags = feature.flags


@feature.availability("authenticate.set_google_credentials")
Expand Down
2 changes: 1 addition & 1 deletion breathecode/payments/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from breathecode.registry.models import Asset
from breathecode.utils.decorators.consume import ServiceContext

flags = feature._flags
flags = feature.flags


@feature.availability("payments.bypass_consumption")
Expand Down
3 changes: 2 additions & 1 deletion breathecode/registry/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ def async_pull_project_dependencies(asset_slug):
g = Github(credentials.token)

dependency_string = pull_repo_dependencies(g, target_asset)
logger.debug(dependency_string)
target_asset.dependencies = dependency_string
target_asset.save()
if target_asset.id != asset.id:
asset.dependencies = dependency_string
asset.save()
return True
except Exception:
logger.exception(f"Error retrieving dependencies for asset {asset.slug}")
Expand Down

0 comments on commit 9b0d213

Please sign in to comment.