Commit Graph

103 Commits

Author SHA1 Message Date
a6d2e424d2 added shared.py at least for DB_URL, maybe more 2021-01-16 17:46:28 +11:00
2776fdc5b3 fixed bug with creating a person and seeing if they have a refimg yet, also tweaked formatting so when we have more than 5 refimages, they will look right in person.html 2021-01-15 17:22:22 +11:00
cda9bce7f3 just staring on this, it is not even reference anywhere 2021-01-15 16:58:55 +11:00
34814236fc add pa_job_engine_id_seq 2021-01-15 16:57:27 +11:00
b123f067b1 fix up comment 2021-01-15 16:57:14 +11:00
58083dbfab added package dependencies 2021-01-15 16:57:07 +11:00
Cam
588980a260 Added the ability to add a reference image to a person, and connect the two in the db 2021-01-15 16:55:12 +11:00
Cam
3191fb650b Merge branch 'master' of mara.ddp.net:photoassistant 2021-01-15 15:33:59 +11:00
Cam
7cda51c89b starting on doing AI with people and refimgs 2021-01-15 15:33:56 +11:00
7d03413e60 fix wrong output on printing Refimg 2021-01-15 15:33:30 +11:00
665096f97d minor tweak to fix pixel alignment, its a serious hack, but it *seems to work 2021-01-15 14:44:31 +11:00
46f8d84cd3 first thoughts on pa_job_engine - to keep overall pa_job engine state, also a pa_job_state in each action also a wait_for so we can do basic handling of jobs and dependencies 2021-01-14 22:13:07 +11:00
a8789e60fe first thoughts on pa_job_engine - to keep overall pa_job engine state, also a pa_job_state in each action also a wait_for so we can do basic handling of jobs and dependencies 2021-01-14 22:13:00 +11:00
a93f9e1da8 changed files table to file to be consistent with other tables in the db 2021-01-14 21:58:20 +11:00
348c9132f2 rename of files table to file, included settings defaults to make this work in DEV after rebuild of DB container 2021-01-14 21:57:53 +11:00
e884accd0a renamed importlog* to job* -- in db, python and html 2021-01-14 21:47:12 +11:00
4df3274624 added basics of job idea to TODO 2021-01-14 21:46:32 +11:00
f7688badd1 created a tables.sql so program can run from a brand new docker / db 2021-01-14 21:46:12 +11:00
2dc80d4399 import log lines also included, with appropriate DB / html 2021-01-14 12:09:32 +11:00
3684f279e4 first pass of import logging, its not being used, data is in real tables, but faked. will probably have to switch to gunicorn and threading to allow import and serving pages when we use slower AI routines 2021-01-14 00:15:54 +11:00
e9137c91fa further refinement of gitignore 2021-01-13 14:07:24 +11:00
66e9242a8e refined the git ingore in reference images 2021-01-13 14:05:44 +11:00
d499825f54 Merge branch 'master' of 192.168.0.2:photoassistant 2021-01-13 14:03:42 +11:00
923404553c trying to force reference_images/ into git 2021-01-13 14:03:36 +11:00
e0de421a2a trying to force reference_images/ into git 2021-01-13 14:03:26 +11:00
Cam
d7ab2b7333 fixed paths in the new ref images code 2021-01-13 14:01:52 +11:00
d9407b1bab tabs ffs 2021-01-13 13:55:36 +11:00
55e3c7145e Merge branch 'master' of 192.168.0.2:photoassistant 2021-01-13 13:54:51 +11:00
c6bf0424ab better try/except handling for files 2021-01-13 13:54:47 +11:00
Cam
73bd64b710 Merge branch 'master' of mara.ddp.net:photoassistant 2021-01-13 13:54:33 +11:00
Cam
f9159bb193 added a logs.py, not completely finished but theoretically just initialise the class to start the logger 2021-01-13 13:54:25 +11:00
2a7151dc66 tried to add a reference_images directory in git, that contains actual uploaded images and the modify/remove also deals with filesystem issues 2021-01-13 13:52:56 +11:00
991b654d4c added reference image class, also tweaked DB classes to have foreign keys, so you cant delete a person connected to a file (tested). Also made refimg class do some quirky bootstrap/jquery to get file dialogs not looking like crap 2021-01-12 23:58:39 +11:00
5bf41ce6a8 token placholder for AI menu with html 2021-01-12 23:58:27 +11:00
ed3a85b8f0 added reference image class, also tweaked DB classes to have foreign keys, so you cant delete a person connected to a file (tested). Also made refimg class do some quirky bootstrap/jquery to get file dialogs not looking like crap 2021-01-12 23:58:12 +11:00
a3a95f636e now have a Person class & associated CReate/Update/Delete functions, and menu in base.html 2021-01-12 21:51:33 +11:00
2c170e2a9c not used anymore 2021-01-12 21:12:02 +11:00
684d057e59 added admin routes/code to allow a scan now and a forced scan 2021-01-12 18:45:13 +11:00
e83a40ee52 converted over to a flat settings table, no more key-value pairs of settings 2021-01-12 18:32:47 +11:00
86c7fbd0be made file_list.html better as well 2021-01-12 17:35:42 +11:00
594a4803cd made file_list.html better as well 2021-01-12 17:34:31 +11:00
09f588e7e4 only call GenerateFileData once now 2021-01-12 17:13:12 +11:00
21b163acc7 ignore /home/ddp/src/photoassistant/new_img_dir/ as well, so we can test 2 active paths 2021-01-12 16:59:15 +11:00
d857233723 files now processes multiple paths, and view shows images for any images in appropriate path 2021-01-12 16:58:41 +11:00
48748c23be used this to remove unique ids on buttons 2021-01-12 15:17:46 +11:00
e82adde1f0 minor code cleanup, removed debug 2021-01-12 14:59:48 +11:00
e35247ea70 video files now have a icon to indicate its a video as well 2021-01-12 14:44:11 +11:00
4c662b3a0e removed debug print of video thumbnail, and made file importer look to see if file is newer than last import, if so, process it and store it in the database. If its older skip it. Then at the end of the function return the database as the list we process 2021-01-12 13:49:05 +11:00
6e67bcd803 stupid me, the video thumbnail did not have thumb class, so it was not being resized by buttons, now works, ratios still seem odd, but its ok 2021-01-12 01:49:51 +11:00
83c7e5379c Merge branch 'master' of 192.168.0.2:photoassistant
BUT, the thumbnails for the videos are fixed ratios, so the resizing doesnt work for them.. Odd
2021-01-12 01:48:11 +11:00