use f-strings

This commit is contained in:
Xevion
2020-01-19 22:35:13 -06:00
parent 4aa971ba9f
commit e1e5c82950
2 changed files with 2 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ class Section(db.Model):
"""given an List of unformatted script quotes, automatically creates Quotes assigned to this Section""" """given an List of unformatted script quotes, automatically creates Quotes assigned to this Section"""
for quote in quotes: for quote in quotes:
match = re.match() 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]) q = Quote(section=self, speaker=match[1], text=match[2])
db.session.add(q) db.session.add(q)
if commit: db.session.commit() if commit: db.session.commit()

1
process.py Normal file
View File

@@ -0,0 +1 @@
data = s.get(link).text