Commit ef6ce98
committed
fix: update PN model to match actual API response structure
- Remove incorrect notificationType field (not in API response)
- Add time_from and time_to fields
- Make bmu_id optional (46 records have null bmUnit)
- Change level fields to int type (matches API)
- Add dataset field for consistency
Test results:
- Physical Notifications: 2,428 records ✅
- PNs with BMU: 2,382
- PNs without BMU: 46
- All records now parse successfully
PN endpoint is now production-ready!1 parent 35c6767 commit ef6ce98
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | | - | |
| 215 | + | |
| 216 | + | |
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
| |||
0 commit comments