Skip to content

Commit

Permalink
fix: weird salm address
Browse files Browse the repository at this point in the history
  • Loading branch information
iguridi committed May 5, 2020
1 parent 360b7e8 commit 3c64f82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/maker/ppt_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ def split_paragraphs(self):
"""
end_response = self.body.find(" R.")
self.response = self.body[:end_response]
self.body = self.body[end_response + 3 :]
self.paragraphs = self.body.split(" R.")
del self.paragraphs[-1]
for n, _ in enumerate(self.paragraphs):
Expand Down
2 changes: 1 addition & 1 deletion app/maker/scrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_books(self):


def format_salm(text, reading):
res = re.search(r"(\d?\d,[-\.\d\s]*\d)\.?\nR/.([\s\S]+)", text)
res = re.search(r"(\d?\d,[-\.\d\s]*\d[abcd]?)\.?\nR/.([\s\S]+)", text)
address = "Sal " + res.group(1) if res else None
salm = None
if res is not None:
Expand Down

0 comments on commit 3c64f82

Please sign in to comment.