Skip to content

Commit

Permalink
fix: duplicated salm
Browse files Browse the repository at this point in the history
  • Loading branch information
iguridi committed May 6, 2020
1 parent 3c64f82 commit 177256e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
from maker import scrapper, ppt_maker

flask_app = Flask(__name__)
flask_app.config["DEBUG"] = True

BASE_URL = "http://www.eucaristiadiaria.cl/"

BASE_PPT = "plantilla-youtube.pptx"
OUTPUT_PPT = "ppt_listo.pptx"
BASE_URL = "http://www.eucaristiadiaria.cl/"
Expand Down
3 changes: 2 additions & 1 deletion app/maker/ppt_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def split_paragraphs(self):
"""
end_response = self.body.find(" R.")
self.response = self.body[:end_response]
self.paragraphs = self.body.split(" R.")
body = self.body[end_response + 3 :]
self.paragraphs = body.split(" R.")
del self.paragraphs[-1]
for n, _ in enumerate(self.paragraphs):
self.paragraphs[n] = " " + self.paragraphs[n]
Expand Down

0 comments on commit 177256e

Please sign in to comment.