~homeworkprod/byceps

5107b7ff7d9ba82546db47d51ef534e63b8529d9 — Jochen Kupperschmidt 4 days ago f025cfd main
Do not remove event filters on webhook update
1 files changed, 3 insertions(+), 1 deletions(-)

M byceps/blueprints/admin/webhook/views.py
M byceps/blueprints/admin/webhook/views.py => byceps/blueprints/admin/webhook/views.py +3 -1
@@ 114,7 114,9 @@ def update(webhook_id):
        return update_form(webhook.id, form)

    event_types = set(form.event_types.data)
    event_filters = {}
    # Event filters cannot be edited at the moment,
    # but at least don't remove them on update.
    event_filters = webhook.event_filters
    format = form.format.data.strip()
    url = form.url.data.strip()
    text_prefix = form.text_prefix.data.lstrip()  # Allow trailing whitespace.