Apply black
This commit is contained in:
parent
bbc600b0b1
commit
d8a43642cb
1 changed files with 6 additions and 4 deletions
|
@ -77,7 +77,7 @@ def get_zammad(user=None):
|
||||||
username=config["zammad_user"],
|
username=config["zammad_user"],
|
||||||
password=config["zammad_password"],
|
password=config["zammad_password"],
|
||||||
is_secure=config["zammad_secure"],
|
is_secure=config["zammad_secure"],
|
||||||
**kwargs
|
**kwargs,
|
||||||
)
|
)
|
||||||
return ZAMMADS[user]
|
return ZAMMADS[user]
|
||||||
|
|
||||||
|
@ -225,7 +225,9 @@ for ticket in tickets:
|
||||||
print(f"Created ticket {new['id']}")
|
print(f"Created ticket {new['id']}")
|
||||||
|
|
||||||
if ticket["ticket"]["Owner"] and ticket["ticket"]["Owner"] != "Nobody":
|
if ticket["ticket"]["Owner"] and ticket["ticket"]["Owner"] != "Nobody":
|
||||||
get_zammad().ticket.update(new['id'], {"owner_id": get_user(users[ticket["ticket"]["Owner"]], "id")})
|
get_zammad().ticket.update(
|
||||||
|
new["id"], {"owner_id": get_user(users[ticket["ticket"]["Owner"]], "id")}
|
||||||
|
)
|
||||||
|
|
||||||
if merged:
|
if merged:
|
||||||
# Do not add comments to merged ticket
|
# Do not add comments to merged ticket
|
||||||
|
|
Loading…
Reference in a new issue