# HG changeset patch # User Goffi # Date 1612427897 -3600 # Node ID f6a225476165464ae0296cf2e6ad102d85492820 # Parent 9204402005701b3b2165b5c6bd15a2258bdb92bf pgsql: fixed `setConfiguration` when an updated field value is the same as current one diff -r 920440200570 -r f6a225476165 sat_pubsub/pgsql_storage.py --- a/sat_pubsub/pgsql_storage.py Thu Jan 14 17:59:23 2021 +0100 +++ b/sat_pubsub/pgsql_storage.py Thu Feb 04 09:38:17 2021 +0100 @@ -554,9 +554,9 @@ raise BadRequest(text=f"Invalid option: {option!r}") for option in to_delete: - options.remove(option) + del options.fields[option] - if not options: + if not options.fields: return if options.get(const.OPT_MAX_ITEMS) == "max":