Skip to content

Commit

Permalink
Merge pull request #40 from erev0s/repr_fix
Browse files Browse the repository at this point in the history
updated representation of user model
  • Loading branch information
erev0s authored Jun 2, 2023
2 parents 999e10e + 1a99ab1 commit b8b31cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, username, password, email, admin=False):
self.admin = admin

def __repr__(self):
return f"<User(name={self.username}, email={self.email})>"
return f'{{"username": "{self.username}", "email": "{self.email}"}}'

def encode_auth_token(self, user_id):
try:
Expand Down

0 comments on commit b8b31cd

Please sign in to comment.