LabNeuroCogDevel / LNCDschedule

calendar and research schedule/visit DB interface
0 stars 1 forks source link

`lncdSql.visit_files(vid)`: collect files for visit_task #34

Open WillForan opened 5 years ago

WillForan commented 5 years ago

needed for #33. lncdSql should have two more functions visit_files(self,vid) and task_files(self,vtid)

  1. visit_files collects each task in checkedin visit that also has non null task.file. calls task_files for each. returns dictionary {'task1': task_files output, 'task2': ...}
  2. task_files files for each visit task. return {'expect': number, 'files': {'file1_id' 'file1_loc','file2_id':,...
    1. compare to task.files for count of files. if count matches visit_task.files, return contents of visit_task.files and expected count
    2. search for files matching pattern of task.files. update db if any are found. return