added thumbnail line to db class for photos, and also updated readme

This commit is contained in:
2021-01-10 17:49:58 +11:00
parent 6807e44228
commit 1eac80a951
2 changed files with 2 additions and 1 deletions

2
README
View File

@@ -3,4 +3,4 @@ In here we can put instructions on how to run this / any general info
pip packages:
* pymediainfo
* PIL (should be there by default)
*
* ExifRead

View File

@@ -40,6 +40,7 @@ class Photos(db.Model):
size_MB = db.Column(db.Integer, unique=False, nullable=False)
# hash might not be unique, this could be the source of dupe problems
hash = db.Column(db.Integer, unique=True, nullable=True)
thumnbnail = db.Column(db.BYTE, unique=False, nullable=False)
def __repr__(self):
return "<id: {}, name: {}>".format(self.id, self.name )