diff --git a/public/test_photos_thumbs/54625640b7fc045a134b1fefb661afc1.jpg b/public/test_photos_thumbs/54625640b7fc045a134b1fefb661afc1.jpg
new file mode 100644
index 0000000..4ed47fe
Binary files /dev/null and b/public/test_photos_thumbs/54625640b7fc045a134b1fefb661afc1.jpg differ
diff --git a/public/test_photos_thumbs/7363535a705fed1bab1b6699841d53ea.jpg b/public/test_photos_thumbs/7363535a705fed1bab1b6699841d53ea.jpg
new file mode 100644
index 0000000..6b56f45
Binary files /dev/null and b/public/test_photos_thumbs/7363535a705fed1bab1b6699841d53ea.jpg differ
diff --git a/public/test_photos_thumbs/f918453a328369b0d2dcd3518bb9b215.jpg b/public/test_photos_thumbs/f918453a328369b0d2dcd3518bb9b215.jpg
new file mode 100644
index 0000000..2095363
Binary files /dev/null and b/public/test_photos_thumbs/f918453a328369b0d2dcd3518bb9b215.jpg differ
diff --git a/src/index.js b/src/index.js
index fc725b5..04083eb 100644
--- a/src/index.js
+++ b/src/index.js
@@ -33,10 +33,10 @@ export class PhotoFromDB extends React.Component {
}
componentDidMount() {
- this.props.database.queries_async(["SELECT Images.name, Albums.relativePath FROM Images INNER JOIN Albums ON Images.album=Albums.id;"])
+ this.props.database.queries_async(["SELECT Images.uniqueHash FROM Images;"])
.then(res => {
var photo = new Photo;
- var imagepath = process.env.PUBLIC_URL + "/test_photos" + res[0]["relativePath"] + "/" + res[0]["name"];
+ var imagepath = process.env.PUBLIC_URL + "/test_photos_thumbs/" + res[0]["uniqueHash"] + ".jpg";
photo.state.path = imagepath;
this.setState({ done: true, photo: photo });
});
@@ -60,7 +60,7 @@ const TestDBFetch = ({ sqlite_file }) => (
{error &&