Make range configurable
This commit is contained in:
parent
27251d7801
commit
a6845330bc
1 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,9 @@ TEMPLATE = """{
|
|||
"zammad_secure": true,
|
||||
"rt_url": "",
|
||||
"rt_user": "",
|
||||
"rt_pass": ""
|
||||
"rt_pass": "",
|
||||
"rt_start": 1,
|
||||
"rt_end": 1000
|
||||
}
|
||||
"""
|
||||
|
||||
|
@ -101,7 +103,7 @@ else:
|
|||
if username not in users:
|
||||
users[username] = source.get_user(username)
|
||||
|
||||
for i in range(1, 1000):
|
||||
for i in range(config["rt_start"], config["rt_end"]):
|
||||
print("Loading ticket {}".format(i))
|
||||
ticket = source.get_ticket(i)
|
||||
if ticket is None:
|
||||
|
|
Loading…
Reference in a new issue