Fix style

Signed-off-by: Ziy1-Tan <ajb459684460@gmail.com>
This commit is contained in:
Ziy1-Tan 2023-05-02 15:54:35 +08:00
parent 5aa9dae09b
commit bb44a38efe

View File

@ -257,11 +257,15 @@ def main():
pathname = CSV_DATA pathname = CSV_DATA
filename = os.path.basename(CSV_DATA) filename = os.path.basename(CSV_DATA)
select_virtual_requests = { select_virtual_requests = {
"select _path from {tbl}": '\n'.join([pathname]for _ in range(2)), "select _path from {tbl}": "\n".join([pathname] for _ in range(2)),
"select _file from {tbl}": '\n'.join([filename]for _ in range(2)), "select _file from {tbl}": "\n".join([filename] for _ in range(2)),
"select _file, from {tbl} order by _path": '\n'.join([filename]for _ in range(2)), "select _file, from {tbl} order by _path": "\n".join(
"select _path, _file from {tbl}": '\n'.join(f'{pathname}\t{filename}' for _ in range(2)), [filename] for _ in range(2)
"select _path, count(*) from {tbl} group by _path": f'{pathname}\t2', ),
"select _path, _file from {tbl}": "\n".join(
f"{pathname}\t{filename}" for _ in range(2)
),
"select _path, count(*) from {tbl} group by _path": f"{pathname}\t2",
} }
t, httpd = start_server() t, httpd = start_server()