From ab9f2ca05d5d70fed5b42db87a33832c41c429cb Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 17 Feb 2023 18:57:14 +0100 Subject: [PATCH] better docs --- eive_tmtc/tmtc/tm_store.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eive_tmtc/tmtc/tm_store.py b/eive_tmtc/tmtc/tm_store.py index ae79813..a5094da 100644 --- a/eive_tmtc/tmtc/tm_store.py +++ b/eive_tmtc/tmtc/tm_store.py @@ -25,13 +25,13 @@ from tmtccmd.util import ObjectIdU32 class OpCode: - DUMP = "dump" + RETRIEVAL_BY_TIME_RANGE = "retrieval_time_range" DELETE_UP_TO = "delete_up_to" class Info: - DUMP = "Dump Telemetry Packets" - DELETE_UP_TO = "Delete Telemetry Packets" + RETRIEVAL_BY_TIME_RANGE = "Dump Telemetry Packets by time range" + DELETE_UP_TO = "Delete Telemetry Packets up to time" _LOGGER = logging.getLogger(__name__) @@ -58,8 +58,8 @@ def pack_tm_store_commands(p: ServiceProviderParams): service=15, subservice=Subservice.DELETE_UP_TO, app_data=app_data ) ) - elif o == OpCode.DUMP: - q.add_log_cmd(Info.DUMP) + elif o == OpCode.RETRIEVAL_BY_TIME_RANGE: + q.add_log_cmd(Info.RETRIEVAL_BY_TIME_RANGE) pass @@ -67,7 +67,7 @@ def pack_tm_store_commands(p: ServiceProviderParams): def add_persistent_tm_store_cmd_defs(defs: TmtcDefinitionWrapper): oce = OpCodeEntry() oce.add(keys=OpCode.DELETE_UP_TO, info=Info.DELETE_UP_TO) - oce.add(keys=OpCode.DUMP, info=Info.DUMP) + oce.add(keys=OpCode.RETRIEVAL_BY_TIME_RANGE, info=Info.RETRIEVAL_BY_TIME_RANGE) defs.add_service( CustomServiceList.TM_STORE, "Persistent TM Store", op_code_entry=oce )