File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 63
63
"major": "Arboriculture",
64
64
"institution": "Shire University"
65
65
}
66
+ ],
67
+ "unavailabilities": [
68
+ {
69
+ "description": "Adventure year of saving Middle Earth",
70
+ "start": "2021-01-01",
71
+ "end": "2021-01-31"
72
+ },
73
+ {
74
+ "description": "Getting the garden back in order after the adventure",
75
+ "start": "2022-01-01",
76
+ "end": "2022-02-15"
77
+ }
66
78
]
67
79
},
68
80
{
@@ -113,6 +125,13 @@ with
113
125
"major": "Swordsmanship",
114
126
"institution": "Rivendell University"
115
127
}
128
+ ],
129
+ "unavailabilities": [
130
+ {
131
+ "description": "Striding in the wilderness",
132
+ "start": "2018-01-01",
133
+ "end": "2018-09-30"
134
+ }
116
135
]
117
136
}
118
137
]' ),
@@ -137,6 +156,15 @@ with
137
156
institution := < str > edu[' institution' ]
138
157
}
139
158
)
159
+ ),
160
+ unavailabilities := (
161
+ for unavailability in json_array_unpack (json_get (user, ' unavailabilities' ))
162
+ union (
163
+ insert User:: Unavailability {
164
+ description := < str > unavailability[' description' ],
165
+ dates := range (< cal :: local_date > unavailability[' start' ], < cal :: local_date > unavailability[' end' ])
166
+ }
167
+ )
140
168
)
141
169
})
142
170
)
You can’t perform that action at this time.
0 commit comments