Commit 1343ccf
committed
Use dtype.from_dataverse_dict for compound fields
Replace the ad-hoc globals/sys.modules lookup of CompoundField with a direct call to `field_info.dtype.from_dataverse_dict` when `field.value` is a dict. This simplifies the code, makes the conversion use the field's declared dtype (more robust and accurate), and removes the fallback import logic.1 parent ff476d0 commit 1343ccf
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
| 410 | + | |
| 411 | + | |
421 | 412 | | |
422 | 413 | | |
423 | 414 | | |
| |||
0 commit comments