mirror of
https://github.com/Xevion/the-office.git
synced 2025-12-16 14:13:36 -06:00
use f-strings
This commit is contained in:
@@ -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
1
process.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
data = s.get(link).text
|
||||||
Reference in New Issue
Block a user