1
0
Fork 0
forked from fnux/rt2zammad

[rt2zammad] update range of rt2fs

This commit is contained in:
kjg 2024-08-02 16:27:51 +09:00
parent e9d28bde1f
commit 44b0a81e45

12
rt2fs
View file

@ -50,7 +50,17 @@ os.makedirs("users", exist_ok=True)
os.makedirs("tickets", exist_ok=True) os.makedirs("tickets", exist_ok=True)
os.makedirs("attachments", 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): def dump(id, retries=3):
print(f"Dumping RT#{id}") print(f"Dumping RT#{id}")