API: minor fix

This commit is contained in:
SamR1 2017-12-17 12:07:25 +01:00
parent b73fdd5e86
commit c5db180ede
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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 = {