distribusi-verse: medium-tech web app content management system for the web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
501 B

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