def save_data_to_bigquery(cid, cdat, caset, xbundle=None, datadir=None, log_msg=None, use_dataset_latest=False): ''' Save course axis data to bigquery cid = course_id cdat = course axis data caset = list of course axis data in dict format xbundle = XML bundle of course (everything except static files) ''' import axis2bigquery axis2bigquery.do_save(cid, caset, xbundle, datadir, log_msg, use_dataset_latest=use_dataset_latest)
def save_data_to_bigquery(cid, caset, bundle=None, log_msg=None, use_dataset_latest=False): """ Save course axis data to bigquery cid = course_id caset = list of course axis data in dict format bundle = XML bundle of course (everything except static files) """ try: import axis2bigquery except ImportError: raise ImportError("Unable to import axis2bigquery.") axis2bigquery.do_save( cid, caset, bundle, DATADIR, log_msg, use_dataset_latest=use_dataset_latest)