@user_required
def get(self, user):
    if (not user.wordlist):
        return ({'message', 'wordlist not set'}, 404)
    data = json.loads(user.wordlist.to_json())
    return {'message': 'ok', 'wordlist': data['id'], 'wordlist_name': data['name']}
@user_required
def get(self, user):
    if (not user.wordlist):
        return ({'message', 'wordlist not set'}, 404)
    data = json.loads(user.wordlist.to_json())
    return {'message': 'ok', 'wordlist': data['id'], 'wordlist_name': data['name']}