API: minor fix
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
				
			|||||||
# mpwo
 | 
					# 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.  
 | 
					Self hosted workout/activity tracker written in Python.  
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,7 +28,8 @@ class User(db.Model):
 | 
				
			|||||||
        ).decode()
 | 
					        ).decode()
 | 
				
			||||||
        self.created_at = created_at
 | 
					        self.created_at = created_at
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def encode_auth_token(self, user_id):
 | 
					    @staticmethod
 | 
				
			||||||
 | 
					    def encode_auth_token(user_id):
 | 
				
			||||||
        """Generates the auth token"""
 | 
					        """Generates the auth token"""
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            payload = {
 | 
					            payload = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user