Skip to content

Commit 077ed77

Browse files
author
zaihuaji
committed
Fix undefined variables
1 parent df8fd2d commit 077ed77

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/rda_python_common/PgFile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ def remote_file_stat(line, opt):
17041704
if opt&17:
17051705
mdate = PgUtil.format_date(items[2], "YYYY-MM-DD", "YYYY/MM/DD")
17061706
mtime = items[3]
1707-
if PgLOG.PGLOG['GMTZ']: (mdate, mtime) = PgUtil.addhour(date, time, PgLOG.PGLOG['GMTZ'])
1707+
if PgLOG.PGLOG['GMTZ']: (mdate, mtime) = PgUtil.addhour(mdate, mtime, PgLOG.PGLOG['GMTZ'])
17081708
if opt&1:
17091709
info['date_modified'] = mdate
17101710
info['time_modified'] = mtime

src/rda_python_common/PgOPT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,8 @@ def compress_files(files, formats, count):
12451245
PgLOG.pglog("{}ing {} File{} for {} ...".format(strcmp, count, s, params['DS']), PGOPT['wrnlog'])
12461246
cmpcnt = 0
12471247
for i in range(count):
1248-
fmt = formats[i] if(i < fntcnt and formats[i]) else formats[0]
1249-
(ofile, fmt) = PgFile.compress_local_file(files[i], fmt, cmpact, PGOPT['extlog'])
1248+
fmt = formats[i] if(i < fmtcnt and formats[i]) else formats[0]
1249+
(ofile, fmt) = PgFile.compress_local_file(files[i], fmt, actcmp, PGOPT['extlog'])
12501250
if ofile != files[i]:
12511251
files[i] = ofile
12521252
cmpcnt += 1

src/rda_python_common/PgPGS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def pgsget(tablenames, fields, condition = None, logact = 0):
7373

7474
if PgLOG.PGLOG['DBGLEVEL']:
7575
if record:
76-
PgLOG.pgdbg(1000, "pgsget: 1 record retrieved from {}:\n{}".format(tablename, str(record)))
76+
PgLOG.pgdbg(1000, "pgsget: 1 record retrieved from {}:\n{}".format(tablenames, str(record)))
7777
else:
7878
PgLOG.pgdbg(1000, "pgsget: 0 record retrieved from " + tablenames)
7979

0 commit comments

Comments
 (0)