Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #670 from frrad/patch-1
Browse files Browse the repository at this point in the history
Fix warning in models.py
  • Loading branch information
pitkley authored Jun 7, 2020
2 parents 38403b7 + 77a20e1 commit 3910d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/documents/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ def many_to_dictionary(field):
# 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]
Expand Down

0 comments on commit 3910d96

Please sign in to comment.