Remove debug logs
This commit is contained in:
parent
8e8a89bdfb
commit
8659504a8b
|
@ -127,15 +127,11 @@ def update(notification_id, label, plugin_name, options, description, active, ce
|
||||||
notification.options = options
|
notification.options = options
|
||||||
notification.description = description
|
notification.description = description
|
||||||
notification.active = active
|
notification.active = active
|
||||||
current_app.logger.info(f"Initial: {notification.certificates}")
|
|
||||||
current_app.logger.info(f"Adding: {added_certificates}")
|
|
||||||
current_app.logger.info(f"Removing: {removed_certificates}")
|
|
||||||
if certificates:
|
if certificates:
|
||||||
notification.certificates = certificates
|
notification.certificates = certificates
|
||||||
else:
|
else:
|
||||||
notification.certificates = notification.certificates + added_certificates
|
notification.certificates = notification.certificates + added_certificates
|
||||||
notification.certificates = [c for c in notification.certificates if c not in removed_certificates]
|
notification.certificates = [c for c in notification.certificates if c not in removed_certificates]
|
||||||
current_app.logger.info(f"Final: {notification.certificates}")
|
|
||||||
|
|
||||||
return database.update(notification)
|
return database.update(notification)
|
||||||
|
|
||||||
|
|
|
@ -337,7 +337,6 @@ class Notifications(AuthenticatedResource):
|
||||||
:reqheader Authorization: OAuth token to authenticate
|
:reqheader Authorization: OAuth token to authenticate
|
||||||
:statuscode 200: no error
|
:statuscode 200: no error
|
||||||
"""
|
"""
|
||||||
print(f"Updating with data: {data}")
|
|
||||||
return service.update(
|
return service.update(
|
||||||
notification_id,
|
notification_id,
|
||||||
data["label"],
|
data["label"],
|
||||||
|
|
Loading…
Reference in New Issue