Skip to content

Commit 3125867

Browse files
authored
Merge pull request #30 from NCAR/hua-work-common
stat_flag == 'True'
2 parents 79ff4e0 + 1e3480c commit 3125867

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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.24"
7+
version = "1.0.25"
88
authors = [
99
{ name="Zaihua Ji", email="zji@ucar.edu" },
1010
]

src/rda_python_common/PgDBI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ def ucar_user_info(userno, logname = None):
15001500
elif pgrec['userno']:
15011501
pgrec['userno'] = userno = int(pgrec['userno'])
15021502
if pgrec['upid']: pgrec['upid'] = int(pgrec['upid'])
1503-
if pgrec['stat_flag']: pgrec['stat_flag'] = 'A' if pgrec['stat_flag'] == '1' else 'C'
1503+
if pgrec['stat_flag']: pgrec['stat_flag'] = 'A' if pgrec['stat_flag'] == "True" else 'C'
15041504
if pgrec['email'] and re.search(r'(@|\.)ucar\.edu$', pgrec['email'], re.I):
15051505
pgrec['email'] = pgrec['ucaremail']
15061506
pgrec['org_name'] = 'NCAR'

0 commit comments

Comments
 (0)