Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: list default markets 500 #1394

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions console/repositories/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ def create_default_app_market_if_not_exists(self, markets_all, eid):

if markets or os.getenv("DISABLE_DEFAULT_APP_MARKET", False):
return
# Due to the default domain name change in the application market,
# a database unique index error will be triggered when created with name.
# For compatibility, so if there is an application market with the same name, no longer create
if markets_all.filter(name=name):
return
AppMarket.objects.create(
name=name,
url=url,
Expand Down
Loading