cr-connect-workflow/crc/scripts/user_data_get.py

20 lines
726 B
Python
Raw Normal View History

from flask import g
from crc.scripts.data_store_base import DataStoreBase
from crc.scripts.script import Script
class UserDataGet(Script, DataStoreBase):
def get_description(self):
2021-02-24 17:05:06 +00:00
return """Gets user data from the data store - takes only one argument 'key' """
def do_task_validate_only(self, task, study_id, workflow_id, *args, **kwargs):
self.do_task(task, study_id, workflow_id, *args, **kwargs)
def do_task(self, task, study_id, workflow_id, *args, **kwargs):
2020-11-10 16:32:59 +00:00
return self.get_data_common(None,
g.user.uid,
'user_data_get',
None,
2020-11-10 16:32:59 +00:00
*args)