Other fixes

This commit is contained in:
Yusur 2019-10-14 21:24:41 +02:00
parent 9dfead5e9c
commit 309009d3a4
2 changed files with 5 additions and 0 deletions

4
app.py
View file

@ -149,6 +149,10 @@ class Relationship(BaseModel):
UPLOAD_DIRECTORY = 'uploads/'
# fixing directory name because of imports from other directory
if __name__ != '__main__':
UPLOAD_DIRECTORY = os.path.join(os.path.dirname(__file__), UPLOAD_DIRECTORY)
class Upload(BaseModel):
# the extension of the media
type = TextField()