diff --git a/src/main.py b/src/main.py index 06a009c..59301a4 100755 --- a/src/main.py +++ b/src/main.py @@ -12,15 +12,21 @@ import argparse import subprocess - send_pre = [5, 0, 1, 14, 0, 2, 0, 7, 1, 8] def build_argparser(): label = subprocess.check_output(["git", "describe"]).strip() parser = argparse.ArgumentParser(description="To select production code") - parser.add_argument('-p','--production', action='store_true', default=False, help = "Create production code") - parser.add_argument('-v','--version', action='version', version=label.decode("utf-8")) + parser.add_argument('-p', + '--production', + action='store_true', + default=False, + help="Create production code") + parser.add_argument('-v', + '--version', + action='version', + version=label.decode("utf-8")) return parser @@ -96,7 +102,7 @@ def poll_loras(loras): while True: poll_loras(node.loras) if counter == post_time_s: - post_scada(node.post_path,args.production) + post_scada(node.post_path, args.production) counter = 0 counter += 1 print("Printing in :", post_time_s - counter, " s")