import os from flask_login import current_user from usermodel import User def AreFilesUploaded(): user = User.query.filter_by(email=current_user.email).first() if user.distribusiname is None: print("distribusi name is empty") return False; userfolder = os.path.join("stash", user.distribusiname) if os.path.exists(userfolder): print("folder found, files are uploaded") return True; #def IsThemeSelected #def IsCustomThemePresent #def IsDistribusiLive