fix: update recommend app params error

This commit is contained in:
John Wang 2023-05-25 15:57:54 +08:00
parent 93ae18ea12
commit f4a70fe2ba
1 changed files with 4 additions and 4 deletions

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']