From a264a53b22d271a05595f0083137065de4485419 Mon Sep 17 00:00:00 2001 From: palitu Date: Thu, 19 Nov 2015 20:53:47 +0800 Subject: [PATCH] Update lycheedao.py Sets the photos "medium" status to 1, so that it will show the load the medium photo. --- lycheedao.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lycheedao.py b/lycheedao.py index bb1fa68..29ef13a 100644 --- a/lycheedao.py +++ b/lycheedao.py @@ -294,14 +294,14 @@ def addFileToAlbum(self, photo): "size, star, " + "thumbUrl, album,iso, aperture, make, " + "model, shutter, focal, takestamp, " + - "description, title, checksum) " + + "description, title, checksum, medium) " + "values " + "({}, '{}', {}, '{}', {}, {}, " + "'{}', {}, " + "'{}', '{}', '{}', '{}'," + " '{}', " + "'{}', '{}', '{}', '{}', " + - "'{}', '{}', '{}')" + "'{}', '{}', '{}', '{}')" ).format(photo.id, photo.url, self.conf["publicAlbum"], self._p(photo.type), photo.width, photo.height, photo.size, photo.star, photo.thumbUrl, photo.albumid, self._p( @@ -309,7 +309,7 @@ def addFileToAlbum(self, photo): photo.exif.aperture), self._p(photo.exif.make), photo.exif.model, self._p(photo.exif.shutter), self._p(photo.exif.focal), stamp, - self._p(photo.description), self._p(photo.originalname), photo.checksum) + self._p(photo.description), self._p(photo.originalname), photo.checksum, "1") try: cur = self.db.cursor() res = cur.execute(query)