mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-22 00:52:42 -05: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:
@@ -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