Skip to content

Commit

Permalink
fixed small bug on template url
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr committed Nov 12, 2024
1 parent d0ad692 commit 73d9b6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 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
2 changes: 2 additions & 0 deletions breathecode/registry/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ def process_asset_config(asset, config):
asset.log_error("template-url", "Only asset types projects can have templates")
else:
asset.template_url = config["template_url"]
else:
asset.template_url = None

if "difficulty" in config:
asset.difficulty = config["difficulty"].upper()
Expand Down

0 comments on commit 73d9b6f

Please sign in to comment.