How to “peek” Flask’s flash messages?

Solution
from flask import session
flashes = session.get("_flashes")
flashes = [x[1] for x in session.get("_flashes")]