small bugfix from refactoring
This commit is contained in:
parent
db84c3eb77
commit
990d7decca
@ -50,8 +50,6 @@ index pages based on folders in the files system. For distrubisverse this means
|
||||
that you can upload a zip file <em>(".zip file extension")</em> with content and have
|
||||
distrubsi turn it into a webpage for you. Making a zip file is very easy for all
|
||||
desktop operating systems (Windows, Mac OS and Linux)</p>
|
||||
<h4>Windows 10</h4>
|
||||
<h4>Mac OS</h4>
|
||||
<hr>
|
||||
<h3>2. Media files become visible</h3>
|
||||
<p>Whenever Distribusi discovers media files in your zipfile it turns them
|
||||
|
@ -24,7 +24,7 @@ def UploadPage(uploadfolder):
|
||||
selectorvisible = SelectorVisible()
|
||||
|
||||
current_distribusi = UserHelper.current_distribusi()
|
||||
if current_distribusi == "new" or HasDistribusi() is False:
|
||||
if current_distribusi == "new" or UserHelper.has_distribusi() is False:
|
||||
uploadform = UploadNewDistribusi(uploadfolder)
|
||||
else:
|
||||
uploadform = UploadUpdatedFiles(uploadfolder)
|
||||
|
@ -14,6 +14,7 @@ class User(UserMixin, db.Model):
|
||||
currentdistribusi = db.Column(db.String(300), nullable=True, unique=False)
|
||||
resethash = db.Column(db.String(300), nullable=True, unique=True)
|
||||
resettime = db.Column(db.DateTime)
|
||||
#active = db.Column(db.Boolean, default=False)
|
||||
tutor = db.Column(db.Boolean, default=False)
|
||||
admin = db.Column(db.Boolean, default=False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user