Apply black

This commit is contained in:
Michal Čihař 2020-12-30 13:43:40 +01:00
parent bbc600b0b1
commit d8a43642cb

View file

@ -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