[entropy.db.sql] fix comparison between different types with Py3.
This commit is contained in:
@@ -2438,7 +2438,9 @@ class EntropySQLRepository(EntropyRepositoryBase):
|
||||
if dbcounter:
|
||||
counter = dbcounter[0]
|
||||
|
||||
if (counter >= -1) or (counter is None):
|
||||
if counter is None:
|
||||
counter = -2
|
||||
elif counter >= -1:
|
||||
counter = -2
|
||||
else:
|
||||
counter -= 1
|
||||
|
||||
Reference in New Issue
Block a user