diff --git a/rt2fs b/rt2fs index 2fb28f7..164bb4c 100755 --- a/rt2fs +++ b/rt2fs @@ -50,7 +50,17 @@ os.makedirs("users", exist_ok=True) os.makedirs("tickets", exist_ok=True) os.makedirs("attachments", exist_ok=True) -ticket_ids = range(config["rt_start"], config["rt_end"]) +#ticket_ids = range(config["rt_start"], config["rt_end"]) +if len(sys.argv) != 3: + print(len(sys.argv)) + print("It needs ticket range to import ex. start, end") + sys.exit() +else: + export_start = int(sys.argv[1]) + export_end = int(sys.argv[2]) + print(f"start : {export_start} end : {export_end}") + ticket_ids = range(export_start, export_end) + def dump(id, retries=3): print(f"Dumping RT#{id}")