fix: update recommend app params error (#197)

This commit is contained in:
John Wang 2023-05-25 16:01:41 +08:00 committed by GitHub
parent 93ae18ea12
commit b6cca59517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,12 +89,12 @@ class InsertExploreAppListApi(Resource):
return {'result': 'success'}, 201
else:
recommended_app.description = {
'en': args['desc_en'],
'zh': args['desc_zh']
'en': desc,
'zh': desc if not args['desc_zh'] else args['desc_zh']
}
recommended_app.copyright = args['copyright']
recommended_app.privacy_policy = args['privacy_policy']
recommended_app.copyright = copy_right
recommended_app.privacy_policy = privacy_policy
recommended_app.category = args['category']
recommended_app.position = args['position']