@app.route('/your_messages', methods=['GET'])
@authenticated
def your_messages():
    """Your messages."""
    messages = lex.get_messages(session['lex_token'])
    messages_with_decrypted = []

    for message in messages:
        # decrypt each message content
        emails = []
        dmessage = lex.decrypt_message(message['message'],
                                       session.get('lex_token'))
        message['decrypted'] = dmessage.decode('utf-8')
        for accessor in message['accessors']:
            if accessor != session['lex_token']:
                user = lex.db.users.find_one({"token": accessor})
                emails.append(user['email'])
        message['emails'] = emails
        message['share'] = (settings.SITE_URL, url_for('message', id=str(message['_id']))) % '%s%s'
        messages_with_decrypted.append(message)
    return render_template('your_messages.html',
                           messages=messages_with_decrypted,
                           page='your_messages')
dataset/ETHPy150Open ednapiranha/lexicrypt/lexicrypt/main.py/your_messages/swapped operands of `%`