[entropy.db.sql] fix comparison between different types with Py3.

This commit is contained in:
Fabio Erculiani
2018-09-23 22:25:00 +02:00
parent e9b211eea0
commit 6b097b57cb

View File

@@ -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