This commit is contained in:
2025-09-22 22:48:55 +02:00
parent fb2b2724ed
commit f9b07795fd
5 changed files with 13 additions and 10 deletions

View File

@@ -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()