ziprandom
8019cf145e
POST_CONSUME_SCRIPT: add document dates to env
2022-06-22 13:58:16 +00:00
ziprandom
910b9a4888
use env variables in pre-|post-consume scripts
...
+ instead of positional arguments because it's easier to use in the
shell script and easier to read in the python code.
2022-06-22 13:56:59 +00:00
Trenton Holmes
ef6ebf9888
Entirely removes the optipng, updates ghostscript fall back to also use WebP. Updates the conversion to use a multiprocessing pool
2022-06-11 08:38:49 -07:00
Philipp
87866bcab0
Add "Created" as additional (optional) parameter for post_documents ( #965 )
...
* Added "created" as optional parameter for post_documents.
* Fixed Conflict
* After Black Reformatting
* Run "add-trailing-comma"
* The right order between black and trailing comma is important....
* Added required=False
* Adds unit test for optional created in document api POST
* Fixes adding of settings override
* And a mis-added print, sigh
Co-authored-by: Philipp <philipp@invalid.invalid>
Co-authored-by: Trenton Holmes <holmes.trenton@gmail.com>
2022-05-18 02:56:32 -07:00
shamoon
3ccf143c0b
Merge pull request #721 from paperless-ngx/bug-fix-date-ignore
...
Fix Ignore Date Parsing
2022-05-10 16:45:58 -07:00
Trenton Holmes
2761a9e7cf
Fixes missing f on an f-string
2022-05-08 16:57:35 -07:00
Trenton Holmes
a944ef1ca6
Adds additional testing for both date parsing and consumed document created date
2022-05-08 16:57:35 -07:00
Trenton Holmes
f62193099c
Runs pyupgrade to Python 3.8+ and adds a hook for it
2022-05-06 09:04:08 -07:00
Trenton Holmes
6635fa5f0d
Runs the pre-commit hooks over all the Python files
2022-03-11 11:34:28 -08:00
kpj
c56cb25b5f
Format Python code with black
2022-02-27 15:26:41 +01:00
jonaswinkler
56bbe644b8
codestyle
2021-05-19 20:26:12 +02:00
jonaswinkler
5d5afb210a
delete macOS specific files
2021-05-19 20:02:47 +02:00
Jonas Winkler
dc565bd035
correct file mode
2021-05-16 01:22:51 +02:00
jonaswinkler
d7bf3bb141
logging before executing pre and post consume scripts
2021-04-05 00:22:11 +02:00
jonaswinkler
d85a0f950f
better exception logging
2021-03-22 23:00:15 +01:00
jonaswinkler
b04d91d68c
fix a bug with thumbnail generation when TIKA was enabled
2021-02-09 22:12:43 +01:00
jonaswinkler
7cdc867307
archive filenames are now stored in the database and checked for collisions just as original filenames as well, unified method for archive version checking
2021-02-09 19:46:19 +01:00
jonaswinkler
a8355b6aae
fix some logging messages
2021-02-06 15:30:47 +01:00
jonaswinkler
e5a7dc0cc7
rework most of the logging
2021-02-05 01:10:29 +01:00
jonaswinkler
fce76d0671
Merge branch 'dev' into feature-websockets-status
2021-01-30 16:08:50 +01:00
jonaswinkler
a37e41ef0c
centralized classifier loading, better error handling, no error messages when auto matching is not used
2021-01-30 14:22:23 +01:00
jonaswinkler
5f7d817d69
localization for websockets
2021-01-28 22:06:02 +01:00
jonaswinkler
14c61d72f3
better error messages
2021-01-27 17:56:06 +01:00
jonaswinkler
c0f185fe7e
bug fixes, test case fixes
2021-01-26 15:19:56 +01:00
jonaswinkler
c1136ac83c
i18n, better error handling
2021-01-26 15:02:46 +01:00
jonaswinkler
2e112fe7b1
fix status reports for consumption directory status messages
2021-01-26 01:15:27 +01:00
jonaswinkler
de2f3fea59
task ids
2021-01-26 00:51:20 +01:00
jonaswinkler
044aa55d74
Merge branch 'dev' into feature-websockets-status
2021-01-23 22:22:17 +01:00
jonaswinkler
5ac567d300
tests for pre and post consume script
2021-01-06 14:08:44 +01:00
jonaswinkler
21df7b39cb
some changes
2021-01-04 23:05:16 +01:00
jonaswinkler
179b53d373
Merge branch 'dev' into feature-websockets-status
2021-01-04 22:45:56 +01:00
jonaswinkler
551c21dfba
don't run post-consume script inside transaction #259
2021-01-04 00:03:31 +01:00
jonaswinkler
804e65f553
fix #236
2021-01-01 23:27:55 +01:00
jonaswinkler
755f950cd2
supply file_name for tika parser
2021-01-01 22:19:43 +01:00
jonaswinkler
2b4bcff599
fixes #222
2020-12-30 21:54:36 +01:00
jonaswinkler
b6f338eb52
clarify error messages #176
2020-12-25 19:26:27 +01:00
jonaswinkler
21bab80d70
debug log mime type #176
2020-12-23 15:22:28 +01:00
jonaswinkler
4478c5c262
fix typo #176
2020-12-23 15:14:24 +01:00
jonaswinkler
bd0c9721c4
removed most of the logic that extracts data from filename patterns #156
2020-12-20 00:08:05 +01:00
jonaswinkler
b28d1bed0e
fixes #112
2020-12-09 22:16:57 +01:00
jonaswinkler
ba7bf9b2d2
removed slugs entirely, since their only purpose was purely cosmetic anyway.
2020-12-09 00:04:37 +01:00
jonaswinkler
27893efdc9
a test that "verifies" that the file renaming lock works and no inconsistencies are created.
2020-12-08 21:08:44 +01:00
jonaswinkler
638113864f
fixes #90
2020-12-08 13:54:49 +01:00
jonaswinkler
dd60100796
changes
2020-12-07 12:44:23 +01:00
jonaswinkler
0bfecaa0fc
Merge branch 'dev' into feature-websockets-status
2020-12-06 22:53:54 +01:00
jonaswinkler
e4eeb29f54
checking file types against parsers in the consumer.
2020-12-01 15:26:05 +01:00
jonaswinkler
f08d494f1b
filename handling for archive files.
2020-11-30 21:38:42 +01:00
jonaswinkler
1df64e3129
Merge branch 'dev' into feature-ocrmypdf
2020-11-30 16:48:09 +01:00
jonaswinkler
7658c07b4d
added file type checks to the parsers to prevent temporary files from being consumed. Also: parsers announce file types they wish to use as default for each mime type.
2020-11-30 00:40:04 +01:00
jonaswinkler
ddb3ef49f6
Merge branch 'dev' into feature-ocrmypdf
2020-11-29 18:37:38 +01:00