Skip to content

Commit

Permalink
modified flag added
Browse files Browse the repository at this point in the history
  • Loading branch information
PennyHow authored Sep 23, 2024
1 parent bcaf79e commit 9c4836f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/pypromice/tx/get_watsontx.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,15 @@ def get_watsontx():

# Sort L0tx files and add tails
for f in glob(out_dir+'/*.txt'):

# Sort lines in L0tx file and remove duplicates
in_dirn, in_fn = os.path.split(f)
out_fn = 'sorted_' + in_fn
out_pn = os.sep.join((in_dirn, out_fn))
sortLines(f, out_pn)

# Find modified files (within the last hour)
if isModified(f, 1):

# Sort lines in L0tx file and remove duplicates
in_dirn, in_fn = os.path.split(f)
out_fn = 'sorted_' + in_fn
out_pn = os.sep.join((in_dirn, out_fn))
sortLines(f, out_pn)

# Close mail server if open
if 'mail_server' in locals():
Expand Down

0 comments on commit 9c4836f

Please sign in to comment.