bug fix: resume function cli

This commit is contained in:
Steve Nyemba 2020-12-11 13:08:54 -06:00
parent 46bc5c2ac9
commit fe6b2ee3e8
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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",