1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 19:16:23 -07:00

Fix some deepsource Python style complaints

This commit is contained in:
Eggbertx 2022-01-28 00:07:57 -08:00
parent e55d00adb2
commit f443617966
2 changed files with 11 additions and 8 deletions

View file

@ -158,7 +158,8 @@ def build(debugging=False):
print("Building for", gcos)
build_cmd += gcflags + ldflags
status = run_cmd(build_cmd + " -o " + gochan_exe + " ./cmd/gochan",
status = run_cmd(
build_cmd + " -o " + gochan_exe + " ./cmd/gochan",
realtime=True, print_command=True)[1]
if status != 0:
print("Failed building gochan, see command output for details")
@ -357,7 +358,8 @@ if __name__ == "__main__":
except KeyboardInterrupt:
print("Received keyboard interrupt, exiting")
elif action == "install":
parser.add_argument("--js",
parser.add_argument(
"--js",
action="store_true",
help="only install JavaScript (useful for frontend development)")
parser.add_argument(

View file

@ -11,7 +11,8 @@ class macro():
# macros
macros = [
macro("serial pk","BIGSERIAL PRIMARY KEY",
macro(
"serial pk","BIGSERIAL PRIMARY KEY",
"BIGINT NOT NULL AUTO_INCREMENT UNIQUE PRIMARY KEY"),
macro("fk to serial", "BIGINT", "BIGINT"),
macro("drop fk", "DROP CONSTRAINT", "DROP FOREIGN KEY")