diff --git a/app/models.py b/app/models.py index fc2024f..da09d1d 100644 --- a/app/models.py +++ b/app/models.py @@ -62,7 +62,7 @@ class Section(db.Model): """given an List of unformatted script quotes, automatically creates Quotes assigned to this Section""" for quote in quotes: match = re.match() - assert match != None, "Quote '{}' could not be processed.".format(quote) + assert match != None, f"Quote '{quote}' could not be processed." q = Quote(section=self, speaker=match[1], text=match[2]) db.session.add(q) if commit: db.session.commit() diff --git a/process.py b/process.py new file mode 100644 index 0000000..9d2f9ef --- /dev/null +++ b/process.py @@ -0,0 +1 @@ +data = s.get(link).text