Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gkeep committed Jul 4, 2024
1 parent 5f19c3f commit 8d9e689
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def make_script(self, sql_scripts: dict) -> str:
if value["outfile"] != "":
out += self.command.format(dbname, " -A -t",
(f'SET search_path to public, {key};\n'
f'COPY({body.rstrip(';')}) TO STDOUT DELIMITER E\',\' CSV HEADER;'))
f'COPY({body.rstrip(";")}) TO STDOUT DELIMITER E\',\' CSV HEADER;'))
out += f' >> {value["outfile"]}'
else:
out += self.command.format(dbname, "", f"SET search_path to public, {key};\n{body}")
Expand Down
2 changes: 0 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from ui_helper import UIMain
from PySide6.QtWidgets import QMainWindow, QApplication

import constructor

if __name__ == "__main__":
app = QApplication(sys.argv)
MainWindow = QMainWindow()
Expand Down

0 comments on commit 8d9e689

Please sign in to comment.