mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix warning in models.py
This commit is contained in:
parent
38403b78b6
commit
77a20e1bd2
@ -336,10 +336,10 @@ class Document(models.Model):
|
||||
# Find delimiter
|
||||
delimiter = t.name.find('_')
|
||||
|
||||
if delimiter is -1:
|
||||
if delimiter == -1:
|
||||
delimiter = t.name.find('-')
|
||||
|
||||
if delimiter is -1:
|
||||
if delimiter == -1:
|
||||
continue
|
||||
|
||||
key = t.name[:delimiter]
|
||||
|
Loading…
x
Reference in New Issue
Block a user