import requests from crc.scripts.script import Script, DataStoreBase from crc import session from crc.models.workflow import WorkflowModel from crc.models.data_store import DataStoreModel from flask import g class UserDataSet(Script,DataStoreBase): def get_description(self): return """Sets user data to the data store.""" def do_task_validate_only(self, task, study_id, workflow_id, *args, **kwargs): self.set_validate_common(None, workflow_id, g.user.uid, 'user_data_set', *args) def do_task(self, task, study_id, workflow_id, *args, **kwargs): return self.set_data_common(task, None, g.user.uid, workflow_id, 'user_data_set', *args, **kwargs)