mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
remove unused parameter
This commit is contained in:
parent
984b535980
commit
20af840dfd
@ -97,14 +97,14 @@ def handle_mail_account(account):
|
|||||||
post_consume_messages = []
|
post_consume_messages = []
|
||||||
|
|
||||||
for message in messages:
|
for message in messages:
|
||||||
result = handle_message(M, message, rule)
|
result = handle_message(message, rule)
|
||||||
if result:
|
if result:
|
||||||
post_consume_messages.append(message.uid)
|
post_consume_messages.append(message.uid)
|
||||||
|
|
||||||
action.post_consume(M, post_consume_messages, rule.action_parameter)
|
action.post_consume(M, post_consume_messages, rule.action_parameter)
|
||||||
|
|
||||||
|
|
||||||
def handle_message(M, message, rule):
|
def handle_message(message, rule):
|
||||||
if not message.attachments:
|
if not message.attachments:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user