Skip to content

Commit

Permalink
DBRunner: clean up calc_runme
Browse files Browse the repository at this point in the history
 * Remove commented code.
 * Take advantage of empty iteration.
  • Loading branch information
jtniehof authored and dnadeau-lanl committed Sep 16, 2020
1 parent 48a8da1 commit 24ca0b5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions scripts/DBRunner.py
Expand Up @@ -117,18 +117,10 @@ def calc_runme(pq, startDate, endDate, inproc):
if timebase in ('DAILY',) \
else pq.dbu.getFilesByProductDate
files = filegetter(p, [d]*2, newest_version=True)
if files:
fnames = [v.filename for v in files]
else:
fnames = []
fnames = [v.filename for v in files]
print(" Found files: {0}".format(list(fnames)))

#files = [v.file_id for v in files]
if files:
input_files.extend([v.file_id for v in files])
if not files:
continue
#files, input_prods = pq._getRequiredProducts(inproc, files[0].filename, d)
input_files.extend([v.file_id for v in files])
if not input_files:
print("No files to run for process ({0}) {1} on {2}".format(inproc,
pq.dbu.getEntry('Process', inproc).process_name,
Expand Down

0 comments on commit 24ca0b5

Please sign in to comment.