From c5db180ede0b87efc98fe84d9b193758cedf733c Mon Sep 17 00:00:00 2001 From: SamR1 Date: Sun, 17 Dec 2017 12:07:25 +0100 Subject: [PATCH] API: minor fix --- README.md | 5 +++++ mpwo_api/mpwo_api/users/models.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e3a1b820..7848c381 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # mpwo +[![Python Version](https://img.shields.io/badge/python-3.6-brightgreen.svg)](https://python.org) +[![Flask Version](https://img.shields.io/badge/flask-0.12-brightgreen.svg)](http://flask.pocoo.org/) +[![React Version](https://img.shields.io/badge/react-16.2-brightgreen.svg)](https://reactjs.org/) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/45d64b31e37e4890a239b8298e66a011)](https://www.codacy.com/app/SamR1/mpwo?utm_source=github.com&utm_medium=referral&utm_content=SamR1/mpwo&utm_campaign=badger) + Self hosted workout/activity tracker written in Python. diff --git a/mpwo_api/mpwo_api/users/models.py b/mpwo_api/mpwo_api/users/models.py index 0805aab3..d47199cc 100644 --- a/mpwo_api/mpwo_api/users/models.py +++ b/mpwo_api/mpwo_api/users/models.py @@ -28,7 +28,8 @@ class User(db.Model): ).decode() self.created_at = created_at - def encode_auth_token(self, user_id): + @staticmethod + def encode_auth_token(user_id): """Generates the auth token""" try: payload = {