Python formatting

This commit is contained in:
Mouse Reeve 2022-03-01 11:39:08 -08:00
parent 41ea7db8b6
commit 38535f811c
2 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,11 @@ def site_settings(request): # pylint: disable=unused-argument
site = models.SiteSettings.objects.get() site = models.SiteSettings.objects.get()
theme = "css/themes/bookwyrm-light.scss" theme = "css/themes/bookwyrm-light.scss"
if hasattr(request, "user") and request.user.is_authenticated and request.user.theme: if (
hasattr(request, "user")
and request.user.is_authenticated
and request.user.theme
):
theme = request.user.theme.path theme = request.user.theme.path
elif site.default_theme: elif site.default_theme:
theme = site.default_theme.path theme = site.default_theme.path

View file

@ -1,6 +1,5 @@
@import "../vendor/bulma/sass/utilities/initial-variables.sass"; @import "../vendor/bulma/sass/utilities/initial-variables.sass";
/* Colors /* Colors
******************************************************************************/ ******************************************************************************/