Merge pull request #1188 from corubba/bugfix/pyOpenSSL

Small bugfixes
This commit is contained in:
jbe-dw
2022-05-23 13:59:18 +02:00
committed by GitHub
5 changed files with 51 additions and 45 deletions

View File

@ -83,10 +83,7 @@ class User(db.Model):
return False
def get_id(self):
try:
return unicode(self.id) # python 2
except NameError:
return str(self.id) # python 3
return str(self.id)
def __repr__(self):
return '<User {0}>'.format(self.username)