|
|
@ -136,9 +136,9 @@ class Webhooks:
|
|
|
|
[("*Start Time*", json["start_time"]), ("*End Time*", json["end_time"]), ("*Run Time*", json["run_time"])],
|
|
|
|
[("*Start Time*", json["start_time"]), ("*End Time*", json["end_time"]), ("*Run Time*", json["run_time"])],
|
|
|
|
[],
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
[
|
|
|
|
(":heavy_plus_sign: *Collections Created*", json["collections_created"]),
|
|
|
|
(":heavy_plus_sign: *Collections Created*", str(json["collections_created"])),
|
|
|
|
(":infinity: *Collections Modified*", json["collections_modified"]),
|
|
|
|
(":infinity: *Collections Modified*", str(json["collections_modified"])),
|
|
|
|
(":heavy_minus_sign: *Collections Deleted*", json["collections_deleted"])
|
|
|
|
(":heavy_minus_sign: *Collections Deleted*", str(json["collections_deleted"]))
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
if json["added_to_radarr"] or json["added_to_sonarr"]:
|
|
|
|
if json["added_to_radarr"] or json["added_to_sonarr"]:
|
|
|
@ -215,7 +215,8 @@ class Webhooks:
|
|
|
|
for row in rows:
|
|
|
|
for row in rows:
|
|
|
|
if row:
|
|
|
|
if row:
|
|
|
|
if len(row[0]) == 1:
|
|
|
|
if len(row[0]) == 1:
|
|
|
|
new_json["blocks"].append({"type": "section", "text": row[0][0]})
|
|
|
|
section = {"type": "section", "text": {"type": "plain_text", "text": row[0][0]}}
|
|
|
|
|
|
|
|
new_json["blocks"].append(section)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
section = {"type": "section", "fields": []}
|
|
|
|
section = {"type": "section", "fields": []}
|
|
|
|
for col in row:
|
|
|
|
for col in row:
|
|
|
|