events updated

This commit is contained in:
2025-01-31 16:04:01 +03:00
parent 93db5eff72
commit 7404da6930
6 changed files with 14 additions and 19 deletions

View File

@@ -214,6 +214,10 @@ class CategoryCluster:
self.INCLUDE_IN_SCHEMA = include_in_schema
self.IS_CLIENT = is_client
@property
def is_clickable(self):
return bool(self.SUBCATEGORY)
@property
def is_client(self):
return self.IS_CLIENT

View File

@@ -82,7 +82,8 @@ class PrepareEvents(DecoratorModule):
cluster = cluster_control.category_cluster
### Create Redis Parameters
# [SAVE]REDIS => MENU_FIRST_LAYER = [ClusterToMethod, ...]
self.valid_redis_items.MENU_FIRST_LAYER_VALUE.add(cluster.name)
if cluster.is_client:
self.valid_redis_items.MENU_FIRST_LAYER_VALUE.add(cluster.name)
# [SAVE]REDIS => CLUSTER_INDEX = {ClusterToMethod: [MethodEvent, ...], "MethodEvent": "ClusterToMethod"}
self.valid_redis_items.CLUSTER_INDEX_VALUE.update(
cluster.get_redis_cluster_index_value()