From 9675dd0bf219ac4a8b51d7566c9d8a3aa0cf45b3 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Tue, 6 Feb 2018 21:31:34 +0100 Subject: [PATCH] Autopep8 --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 29ffb7e..7df1f74 100644 --- a/app.py +++ b/app.py @@ -3,10 +3,10 @@ # ========================= # Librarys # ========================= +from dotenv import load_dotenv, find_dotenv import os from flask import Flask, request from flask_restplus import Resource, Api -from dotenv import load_dotenv, find_dotenv from models import db, User, Notice, Comment from flask_marshmallow import Marshmallow @@ -196,7 +196,8 @@ class NewsSingle(Resource): db.session.commit() except Exception as e: db.session.rollback() - return {'message': 'No se ha podido guardar la informaciĆ³n'}, 500 + return { + 'message': 'No se ha podido guardar la informaciĆ³n'}, 500 else: return {'message': 'No existe la noticia'}, 400 return {'message': 'ok'}, 200