forked from fnux/rt2zammad
[rt2zammad] update range of rt2fs
This commit is contained in:
parent
e9d28bde1f
commit
44b0a81e45
1 changed files with 11 additions and 1 deletions
12
rt2fs
12
rt2fs
|
@ -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}")
|
||||||
|
|
Loading…
Reference in a new issue