Black code
This commit is contained in:
parent
9102cbf9d0
commit
086dce8fb6
1 changed files with 5 additions and 2 deletions
|
@ -21,7 +21,11 @@ class Tag(Resource):
|
||||||
def add(self, obj, id, item):
|
def add(self, obj, id, item):
|
||||||
response = self._connection.session.post(
|
response = self._connection.session.post(
|
||||||
self.url + "/add",
|
self.url + "/add",
|
||||||
data={"object": obj, "id": id, "item": item}
|
data={
|
||||||
|
"object": obj,
|
||||||
|
"id": id,
|
||||||
|
"item": item,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
return self._raise_or_return_json(response)
|
return self._raise_or_return_json(response)
|
||||||
|
|
||||||
|
@ -187,7 +191,6 @@ def get_user(userdata, attr="login", default=None):
|
||||||
return USERMAP[lemail].get(attr, default)
|
return USERMAP[lemail].get(attr, default)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Create tickets
|
# Create tickets
|
||||||
for ticket in tickets:
|
for ticket in tickets:
|
||||||
label = "RT-{}".format(ticket["ticket"]["original_id"])
|
label = "RT-{}".format(ticket["ticket"]["original_id"])
|
||||||
|
|
Loading…
Reference in a new issue