aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/models.py
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2020-07-15 13:00:53 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2020-07-15 13:00:53 -0700
commit4cc9426d72fe9baa8a4a7f56c6d43493bd011f02 (patch)
treeade06936c72c68b359b6a409bfebd7568c28eac0 /src/api/models.py
parent682f7ebb6d0be5ddd8e4c699e1f87fc20a3fe1e3 (diff)
Fix Flake8 Violations
Several minor issues found through flake8 should now be fixed in the code. Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org> Change-Id: I4f6e5dac5ed8378911598ded714602bbb3f6bd6b
Diffstat (limited to 'src/api/models.py')
-rw-r--r--src/api/models.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/api/models.py b/src/api/models.py
index addc02d..231ae31 100644
--- a/src/api/models.py
+++ b/src/api/models.py
@@ -176,12 +176,12 @@ class LabManager(object):
def format_user(self, userprofile):
return {
- "id": userprofile.user.id,
- "username": userprofile.user.username,
- "email": userprofile.email_addr,
- "first_name": userprofile.user.first_name,
- "last_name": userprofile.user.last_name,
- "company": userprofile.company
+ "id": userprofile.user.id,
+ "username": userprofile.user.username,
+ "email": userprofile.email_addr,
+ "first_name": userprofile.user.first_name,
+ "last_name": userprofile.user.last_name,
+ "company": userprofile.company
}
def get_users(self):