Skip to content

Commit

Permalink
Fix undefined variables
Browse files Browse the repository at this point in the history
  • Loading branch information
zaihuaji committed Jan 8, 2025
1 parent df8fd2d commit 077ed77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/rda_python_common/PgFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ def remote_file_stat(line, opt):
if opt&17:
mdate = PgUtil.format_date(items[2], "YYYY-MM-DD", "YYYY/MM/DD")
mtime = items[3]
if PgLOG.PGLOG['GMTZ']: (mdate, mtime) = PgUtil.addhour(date, time, PgLOG.PGLOG['GMTZ'])
if PgLOG.PGLOG['GMTZ']: (mdate, mtime) = PgUtil.addhour(mdate, mtime, PgLOG.PGLOG['GMTZ'])
if opt&1:
info['date_modified'] = mdate
info['time_modified'] = mtime
Expand Down
4 changes: 2 additions & 2 deletions src/rda_python_common/PgOPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,8 @@ def compress_files(files, formats, count):
PgLOG.pglog("{}ing {} File{} for {} ...".format(strcmp, count, s, params['DS']), PGOPT['wrnlog'])
cmpcnt = 0
for i in range(count):
fmt = formats[i] if(i < fntcnt and formats[i]) else formats[0]
(ofile, fmt) = PgFile.compress_local_file(files[i], fmt, cmpact, PGOPT['extlog'])
fmt = formats[i] if(i < fmtcnt and formats[i]) else formats[0]
(ofile, fmt) = PgFile.compress_local_file(files[i], fmt, actcmp, PGOPT['extlog'])
if ofile != files[i]:
files[i] = ofile
cmpcnt += 1
Expand Down
2 changes: 1 addition & 1 deletion src/rda_python_common/PgPGS.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def pgsget(tablenames, fields, condition = None, logact = 0):

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

Expand Down

0 comments on commit 077ed77

Please sign in to comment.