-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_db.py
More file actions
29 lines (22 loc) · 731 Bytes
/
update_db.py
File metadata and controls
29 lines (22 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from db.collection import Subjects, Sessions, Followups, Neuropsych, Questionnaires, SSAGAs, Internalizing
followup_coll = Followups()
followup_coll.reset_update()
followup_coll.update_from_sessions()
subjects_coll = Subjects()
subjects_coll.reset_update()
subjects_coll.update_from_followups()
session_coll = Sessions()
session_coll.reset_update()
session_coll.update_from_followups()
npsych_coll = Neuropsych()
npsych_coll.reset_update()
npsych_coll.update_from_sfups()
ssaga_coll = SSAGAs()
ssaga_coll.reset_update()
ssaga_coll.update_from_sessions()
quest_coll = Questionnaires()
quest_coll.reset_update()
quest_coll.update_from_sessions()
int_coll = Internalizing()
int_coll.reset_update()
int_coll.update_from_ssaga()