From 1eac80a951a73c6dc9fd1aac6e610c66bdf9bc45 Mon Sep 17 00:00:00 2001 From: Cam Date: Sun, 10 Jan 2021 17:49:58 +1100 Subject: [PATCH] added thumbnail line to db class for photos, and also updated readme --- README | 2 +- photos.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README b/README index beb1e55..04f5c6d 100644 --- a/README +++ b/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) - * \ No newline at end of file + * ExifRead \ No newline at end of file diff --git a/photos.py b/photos.py index 43e1661..c1280b3 100644 --- a/photos.py +++ b/photos.py @@ -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 "".format(self.id, self.name )