Skip to content

Commit

Permalink
Fix themes.py (#655)
Browse files Browse the repository at this point in the history
* Fix creation of themes.json
  • Loading branch information
GilbN authored Oct 14, 2024
1 parent b3330b9 commit 928ef95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def create_css(theme, theme_type="standard"):
else:
with open("CNAME", "rt", closefd=True) as cname:
CNAME = cname.readline()
DOMAIN = f"{branch}.{CNAME}" if branch else CNAME

DOMAIN = f"{branch}.{CNAME}" if branch not in ["master","main"] else CNAME
apps = loads(create_json(app_folders=app_folders, themes=themes, community_themes=community_themes, docker_mods=docker_mods))
with open("themes.json", "w") as outfile:
dump(apps, outfile, indent=2, sort_keys=True)
Expand Down

0 comments on commit 928ef95

Please sign in to comment.