def update_data_by_dataset(cls, data_set): fusio_databases_file = utils.new_fusio_files_path(data_set.name) if not os.path.exists(fusio_databases_file): return logging.getLogger(__name__).debug("updating data for {}".format(data_set.name)) #we copy the file to update the reference data shutil.move(fusio_databases_file, os.path.join(utils.instance_data_path(data_set.name), 'fusio/databases.zip'))
def update_data_by_dataset(cls, data_set): fusio_databases_file = utils.new_fusio_files_path(data_set.name) if not os.path.exists(fusio_databases_file): return logging.getLogger(__name__).debug("updating data for {}".format( data_set.name)) #we copy the file to update the reference data shutil.move( fusio_databases_file, os.path.join(utils.instance_data_path(data_set.name), 'fusio/databases.zip'))