Skip to content

Commit

Permalink
fix school logo checking in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoexe committed Nov 14, 2024
1 parent 1fc8f5b commit c8f548d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sostituzioni/view/setup/routes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from pathlib import Path
from flask import redirect, url_for, render_template

from sostituzioni.control.configurazione import configurazione
Expand Down Expand Up @@ -47,9 +48,12 @@ def next():
admin_ready = bool(configurazione.admin_email)

school_img_ready = (
configurazione.get("schoolmainlogo").valore.path.exists()
and configurazione.get("schoolhederlogo").valore.path.exists()
)
configurazione.get("flaskstaticdir").path
/ configurazione.get("schoolmainlogo").path
).exists() and (
configurazione.get("flaskstaticdir").path
/ configurazione.get("schoolheaderlogo").path
).exists()

school_info_ready = (
bool(configurazione.get("supportemail"))
Expand Down

0 comments on commit c8f548d

Please sign in to comment.