From e1e5c829508acee3906895f4c17574004de48a1f Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 19 Jan 2020 22:35:13 -0600 Subject: [PATCH] use f-strings --- app/models.py | 2 +- process.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 process.py 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