diff options
Diffstat (limited to 'service/app/pixelated_user_agent.py')
-rw-r--r-- | service/app/pixelated_user_agent.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/service/app/pixelated_user_agent.py b/service/app/pixelated_user_agent.py index 3315999b..739cb57f 100644 --- a/service/app/pixelated_user_agent.py +++ b/service/app/pixelated_user_agent.py @@ -100,9 +100,8 @@ def mail(mail_id): @app.route('/mail/<mail_id>/tags', methods=['POST']) def mail_tags(mail_id): new_tags = request.get_json()['newtags'] - mail = mail_service.mail(mail_id) - mail_service.update_tags(mail, new_tags) - tag_names = [tag.name for tag in mail.tags] + tags = mail_service.update_tags(mail_id, new_tags) + tag_names = [tag.name for tag in tags] return respond_json(tag_names) |