Пример #1
0
 def _delete_zip_files_from_store(self, project):
     from pybossa.core import json_exporter, csv_exporter
     global uploader
     if uploader is None:
         from pybossa.core import uploader
     json_tasks_filename = json_exporter.download_name(project, 'task')
     csv_tasks_filename = csv_exporter.download_name(project, 'task')
     json_taskruns_filename = json_exporter.download_name(project, 'task_run')
     csv_taskruns_filename = csv_exporter.download_name(project, 'task_run')
     container = "user_%s" % project.owner_id
     uploader.delete_file(json_tasks_filename, container)
     uploader.delete_file(csv_tasks_filename, container)
     uploader.delete_file(json_taskruns_filename, container)
     uploader.delete_file(csv_taskruns_filename, container)
Пример #2
0
 def _delete_zip_files_from_store(self, project):
     from pybossa.core import json_exporter, csv_exporter
     global uploader
     if uploader is None:
         from pybossa.core import uploader
     json_tasks_filename = json_exporter.download_name(project, 'task')
     csv_tasks_filename = csv_exporter.download_name(project, 'task')
     json_taskruns_filename = json_exporter.download_name(
         project, 'task_run')
     csv_taskruns_filename = csv_exporter.download_name(project, 'task_run')
     container = "user_%s" % project.owner_id
     uploader.delete_file(json_tasks_filename, container)
     uploader.delete_file(csv_tasks_filename, container)
     uploader.delete_file(json_taskruns_filename, container)
     uploader.delete_file(csv_taskruns_filename, container)