mirror of
https://github.com/element-hq/synapse
synced 2024-09-28 16:32:40 +00:00
Switch to f-strings
This commit is contained in:
parent
90128dd355
commit
2edc839c23
1 changed files with 2 additions and 2 deletions
|
@ -2242,10 +2242,10 @@ class DatabasePool:
|
|||
table: The name of the table to delete all rows from.
|
||||
"""
|
||||
if isinstance(txn.database_engine, PostgresEngine):
|
||||
sql = "TRUNCATE %s" % table
|
||||
sql = f"TRUNCATE {table}"
|
||||
else:
|
||||
# SQLite does not support the TRUNCATE command
|
||||
sql = "DELETE FROM %s" % table
|
||||
sql = f"DELETE FROM {table}"
|
||||
|
||||
txn.execute(sql)
|
||||
|
||||
|
|
Loading…
Reference in a new issue