Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
npalaska committed Nov 9, 2020
1 parent 468798e commit db53a4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/pbench/server/api/resources/db_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def decode_auth_token(auth_token):


class URLModel(App.db.Model):
""" User Model for storing user related details """

""" URL Model for storing URL related details """
# TODO: Think about the better name
__tablename__ = "urls"

id = App.db.Column(App.db.Integer, primary_key=True, autoincrement=True)
Expand All @@ -86,4 +86,4 @@ def __init__(self, created, config, description):
self.description = description

def __str__(self):
return f"New user, id: {self.id}, username: {self.username}"
return f"Url id: {self.id}, created on: {self.created}, description: {self.description}"
2 changes: 1 addition & 1 deletion lib/pbench/server/api/resources/pbench_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, app, db):
def post(self):
"""
Post request for registering a new user.
This requires a JSON data with required user metadata fields
This requires a JSON data with required user fields
{
"username": "username",
"password": "password",
Expand Down

0 comments on commit db53a4a

Please sign in to comment.