ruff fix
This commit is contained in:
@@ -46,7 +46,8 @@ def ftp_SITE_ADDU(self: object, line: str) -> None:
|
||||
# Create a cursor
|
||||
cur = conn.cursor()
|
||||
cur.execute(
|
||||
f"INSERT INTO {cfg.dbname}.{cfg.dbusertable} (ftpuser, hash, virtpath, perm) VALUES ('{user}', '{hash}', '{cfg.virtpath + user}', '{cfg.defperm}')"
|
||||
f"""INSERT INTO {cfg.dbname}.{cfg.dbusertable} (ftpuser, hash, virtpath, perm)
|
||||
VALUES ('{user}', '{hash}', '{cfg.virtpath + user}', '{cfg.defperm}')"""
|
||||
)
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user