API: minor fix
This commit is contained in:
parent
b73fdd5e86
commit
c5db180ede
@ -1,3 +1,8 @@
|
||||
# mpwo
|
||||
|
||||
[](https://python.org)
|
||||
[](http://flask.pocoo.org/)
|
||||
[](https://reactjs.org/)
|
||||
[](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.
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user