MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / ensure_custom_properties_dict

Function ensure_custom_properties_dict

core/utils.py:101–111  ·  view source on GitHub ↗

Return a dict for read/merge/bulk-write paths. Dict values pass through without re-parsing. Use model ``save()`` (not this) as the canonical normalizer for ORM writes that go through ``save()``.

(value)

Source from the content-addressed store, hash-verified

99
100
101def ensure_custom_properties_dict(value):
102 """
103 Return a dict for read/merge/bulk-write paths. Dict values pass through
104 without re-parsing. Use model ``save()`` (not this) as the canonical
105 normalizer for ORM writes that go through ``save()``.
106 """
107 if isinstance(value, dict):
108 return value
109 if value is None:
110 return {}
111 return custom_properties_as_dict(value)
112
113
114class RedisClient:

Callers 15

__init__Method · 0.90
saveMethod · 0.90
updateMethod · 0.90
createMethod · 0.90
process_groupsFunction · 0.90
sync_auto_channelsFunction · 0.90
refresh_account_profilesFunction · 0.90
refresh_account_infoFunction · 0.90
update_group_settingsMethod · 0.90
is_compact_groupFunction · 0.90

Calls 1