I want to have the result of my query converted to a list of dicts like this :
result_dict = [{\'category\': \'failure\', \'week\': \'1209\', \'stat\': \'tdc_ok
There's no .all()
You can try:
result_dict = [u.__dict__ for u in my_query.fetchall()]