mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-24 08:38:55 +00:00
style changes, variable renames
* PEP8 conformity * rename run_post_consume_external_script to run_post_consume_script * rename run_pre_consume_external_script to run_pre_consume_script * change order of declaration and use from post...pre to pre...post
This commit is contained in:
1 parent
c728b1dd21
commit
e7566d2b1c
3 files changed
+19
-17
No files matched your search
@@ -7,15 +7,16 @@ class DocumentsConfig(AppConfig):
|
||||
|
||||
def ready(self):
|
||||
|
||||
from .signals import document_consumption_finished
|
||||
from .signals import document_consumption_started
|
||||
from .signals import document_consumption_finished
|
||||
from .signals.handlers import (
|
||||
set_correspondent, set_tags, run_post_consume_external_script, run_pre_consume_external_script)
|
||||
set_correspondent, set_tags, run_pre_consume_script,
|
||||
run_post_consume_script)
|
||||
|
||||
document_consumption_started.connect(run_pre_consume_script)
|
||||
|
||||
document_consumption_finished.connect(set_tags)
|
||||
document_consumption_finished.connect(set_correspondent)
|
||||
document_consumption_finished.connect(run_post_consume_external_script)
|
||||
|
||||
document_consumption_started.connect(run_pre_consume_external_script)
|
||||
document_consumption_finished.connect(run_post_consume_script)
|
||||
|
||||
AppConfig.ready(self)
|
||||
Reference in new issue
Block a user