in py3 long is now under int

This commit is contained in:
Dashie 2022-08-09 11:25:57 +02:00
parent d87ae9bcec
commit d8be441e06
No known key found for this signature in database
GPG Key ID: C2D57B325840B755
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Model():
Returns:
true if the object exists in database otherwise false
"""
if ((type(self.id) == int or type(self.id) == long) and self.id is not None and self.id > 0):
if ((type(self.id) == int) and self.id is not None and self.id > 0):
return True
else:
return False