bug fix: resume function cli

master
Steve L. Nyemba 4 years ago
parent 46bc5c2ac9
commit fe6b2ee3e8

@ -44,6 +44,7 @@ from multiprocessing import Process
import time
from healthcareio import x12
import smart
from healthcareio.server import proxy
import pandas as pd
PATH = os.sep.join([os.environ['HOME'],'.healthcareio'])
@ -253,7 +254,8 @@ if __name__ == '__main__' :
# if the user has specified to resume, we should look into the logs and pull the files processed and those that haven't
#
if 'resume' in SYS_ARGS :
files = resume(files,SYS_ARGS['parse'],info)
store_config = json.loads( (open(os.sep.join([PATH,'config.json']))).read() )
files = proxy.get.resume(files,store_config )
print (["Found ",len(files)," files unprocessed"])
#
# @TODO: Log this here so we know what is being processed or not

@ -8,7 +8,7 @@ import sys
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
args = {
"name":"healthcareio","version":"1.4.2",
"name":"healthcareio","version":"1.4.4",
"author":"Vanderbilt University Medical Center",
"author_email":"steve.l.nyemba@vumc.org",
"license":"MIT",

Loading…
Cancel
Save