Skip to content

Commit

Permalink
fix: update recommend app params error (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost authored May 25, 2023
1 parent 93ae18e commit b6cca59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/controllers/console/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ def post(self):
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']

Expand Down

0 comments on commit b6cca59

Please sign in to comment.