Commit Graph

120 Commits

Author SHA1 Message Date
cc3a6cebd7 changed all new_file to file, also make JobForceScan work 2021-01-20 20:02:40 +11:00
31d45e80b6 moved over to new ENTRY based data structures for loading from DB and viewing content 2021-01-19 17:33:10 +11:00
2b9dedb9b9 change how we calculate active jobs, probably will remove it from pa_job_engine, safer with threads I think. But, mostyle, added in client / server socket comms between web FE and job manager, with better job creation message (including link to job detail) and when you view job detail it auto-refreshes every few seconds until job complete) 2021-01-17 12:35:28 +11:00
abff2d8bab finished moving GenerateFileData out of files.py into pa_job_manager.py 2021-01-17 11:31:06 +11:00
c5d8811671 actually create a job for scan now, and let the job manager do the work and send back output via new PA_JobManager_FE_Message table 2021-01-17 10:50:43 +11:00
e138ab22aa git commit, converted over to base.html pulling Status*, rather than every render_template calling it. Tightened up naming for job manager, fixed a few bugs in there with items like div by zero, created the active jobs link/badge in navbar, have it invoked each time by base.html template and it gets active jobs from DB, pa_job_manager now initiliases from an empty DB and can work out where it is at, no loop/thread/or actual job code yet. jobs.py has basics of a NewJob(), so next step is to force that job to be executed in pa_job_manager, but its tea time 2021-01-16 17:51:16 +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
e884accd0a renamed importlog* to job* -- in db, python and html 2021-01-14 21:47:12 +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
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
09f588e7e4 only call GenerateFileData once now 2021-01-12 17:13:12 +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
e82adde1f0 minor code cleanup, removed debug 2021-01-12 14:59:48 +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
Cam
eeb24611c8 got video thumbnails working, added another pip packages to the README, and edited the templates/files.html accordingly. 2021-01-11 12:50:31 +11:00
Cam
050ce69617 added generation of video thumbnails 2021-01-11 12:04:57 +11:00
Cam
980db74a78 added a bug, and also stuck all of our utility functions for files into a class 2021-01-11 11:47:37 +11:00
5741470ce0 moved over to the beginnings of a class for file data, functional again 2021-01-11 11:28:49 +11:00
ccc8085aaf changed Photo class and DB table to be Files, also reflected through templates/files* - files.html is not used yet 2021-01-11 11:00:31 +11:00