Update message in request

This commit is contained in:
Patrick Jentsch 2023-03-27 14:01:56 +02:00
parent df870c1c7d
commit 09b3afc880

View File

@ -67,10 +67,7 @@ def update_user_is_public(user_id):
user.is_public = is_public
db.session.commit()
response_data = {
'message': (
f'User "{user.username}" is now'
f' {"public" if is_public else "private"}'
),
'message': 'Profile privacy settings updated',
'category': 'corpus'
}
return response_data, 200