From fe6b2ee3e82913e44ad80949ce31e81528f05859 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Fri, 11 Dec 2020 13:08:54 -0600 Subject: [PATCH] bug fix: resume function cli --- healthcareio/healthcare-io.py | 4 +++- setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/healthcareio/healthcare-io.py b/healthcareio/healthcare-io.py index be6012d..33efbf8 100644 --- a/healthcareio/healthcare-io.py +++ b/healthcareio/healthcare-io.py @@ -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 diff --git a/setup.py b/setup.py index 81fd839..65eb967 100644 --- a/setup.py +++ b/setup.py @@ -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",