added thumbnail line to db class for photos, and also updated readme
This commit is contained in:
2
README
2
README
@@ -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
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user