Skip to content

Commit

Permalink
Invoke converter and its data correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbacon committed May 16, 2019
1 parent f739918 commit d05a77b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions clinicaltrials/frontend/management/commands/load_data.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
import logging
import os
import requests
import sys
import traceback
from frontend.management.commands.process_data import Command as ProcessCommand
from django.core.management.base import BaseCommand
Expand Down Expand Up @@ -31,14 +29,14 @@ def convert_data():
# an exception if its startup script finished in an error or
# unknown state
create_instance.main(
"ebmdatalab", "europe-west2-a", "ctgov-converter", wait=True)
"ebmdatalab", "ctgov-converter", wait=True)


def process_data():
cmd = ProcessCommand()
cmd.handle(
input_csv=('https://storage.googleapis.com/ebmdatalab/clinicaltrials/'
'clinical_trials.csv.tmp'))
'clinical_trials.csv'))


class Command(BaseCommand):
Expand Down

0 comments on commit d05a77b

Please sign in to comment.