From 562fa4c5eb1a92a0df5f2d2a2873cdb9baea2025 Mon Sep 17 00:00:00 2001 From: zaihuaji Date: Mon, 23 Mar 2026 10:40:36 -0500 Subject: [PATCH] changes according copilot --- src/rda_python_common/pg_cmd.py | 2 +- src/rda_python_common/pg_opt.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rda_python_common/pg_cmd.py b/src/rda_python_common/pg_cmd.py index c4ee8d5..cb11c91 100644 --- a/src/rda_python_common/pg_cmd.py +++ b/src/rda_python_common/pg_cmd.py @@ -716,7 +716,7 @@ def get_command_info(pgrec): otype, dsid, action, and specialist fields. Returns: - str: A concise string such as 'Rqst42 ds123.0 ST of jsmith'. + str: A concise string such as 'Rqst42 d123000 ST of jsmith'. """ if pgrec['oindex']: if pgrec['command'] == "dsupdt": diff --git a/src/rda_python_common/pg_opt.py b/src/rda_python_common/pg_opt.py index d2a01ee..9c9734d 100644 --- a/src/rda_python_common/pg_opt.py +++ b/src/rda_python_common/pg_opt.py @@ -67,7 +67,7 @@ def __init__(self): # The third hash value define bit flags, # For Action Options: # -1 - VSN card actions - # >0 - setions + # >0 - set actions # # For Mode Options: # 1 - mode for archiving actions @@ -92,7 +92,7 @@ def __init__(self): # 128(0x080) - '' allowed for single letter value # 256(0x100) - date field # - # The fourth hash values defined retrictions for single letter values + # The fourth hash values defined restriction for single letter values ############################################################################### self.OPTS = {} # global initial optional values @@ -1669,7 +1669,7 @@ def get_control_frequency(frequency): else: errmsg = "invalid frequency '{}', unit must be (Y,M,W,D,H,N,S)".format(frequency) return (None, errmsg) - freq = [0]*7 # initialize the frequence list + freq = [0]*7 # initialize the frequency list uidx = {'Y': 0, 'D': 2, 'H': 3, 'N': 4, 'S': 5} if unit == 'M': freq[1] = val