From a6845330bca685f2996d0bc6f32defe8b5b53e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Aug 2020 13:22:10 +0200 Subject: [PATCH] Make range configurable --- rt2zammad.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rt2zammad.py b/rt2zammad.py index 58a35c7..4df2692 100755 --- a/rt2zammad.py +++ b/rt2zammad.py @@ -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: