From e921dbeb5fa650abb9180000bfbeea438b074692 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 25 May 2017 22:11:19 +0200 Subject: [PATCH] Add fixmes. --- accountant/views/operations.py | 3 +++ accountant/views/users.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/accountant/views/operations.py b/accountant/views/operations.py index 0679c15..2e2005a 100644 --- a/accountant/views/operations.py +++ b/accountant/views/operations.py @@ -127,6 +127,9 @@ class OperationListResource(Resource): data = self.api.payload account_id = data['account_id'] + + # FIXME Alexis Lahouze 2017-05-19 Check account_id presence. + account = Account.query().get(account_id) if not account: diff --git a/accountant/views/users.py b/accountant/views/users.py index 868aa81..d8919ad 100644 --- a/accountant/views/users.py +++ b/accountant/views/users.py @@ -90,4 +90,6 @@ class LoginResource(Resource): """Get authenticated user information.""" user = User.query().get(get_jwt_identity()) + # FIXME Alexis Lahouze 2017-05-19 Check user presence + return user, 200