Skip to content

Commit 81f209c

Browse files
author
zaihuaji
committed
modify get_dsrqst_control()
1 parent e6e0e8c commit 81f209c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rda_python_common"
7-
version = "1.0.21"
7+
version = "1.0.22"
88
authors = [
99
{ name="Zaihua Ji", email="zji@ucar.edu" },
1010
]

src/rda_python_common/PgCMD.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,10 @@ def get_dsrqst_control(pgrqst, logact = 0):
289289
pgctl = None
290290
if not pgctl:
291291
gcnd = "dsid = '{}' AND gindex = ".format(pgrqst['dsid'])
292-
tcnd = " AND rqsttype = '{}'".format(pgrqst['rqsttype'])
292+
if pgrqst['rqsttype'] in "ST":
293+
tcnd = " AND (rqsttype = 'T' OR rqsttype = 'S')"
294+
else:
295+
tcnd = " AND rqsttype = '{}'".format(pgrqst['rqsttype'])
293296
gindex = pgrqst['gindex']
294297
while True:
295298
pgctl = PgDBI.pgget("rcrqst", cflds, "{}{}{}".format(gcnd, gindex, tcnd), logact)

0 commit comments

Comments
 (0)