Skip to content

Commit 2a6316f

Browse files
DarynarliDarynarli
authored andcommitted
displaying field in resource dict #1931
1 parent 0e713f7 commit 2a6316f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dataedit/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import logging
3535
import os
3636
import re
37-
from collections import defaultdict
3837
from functools import reduce
3938
from io import TextIOWrapper
4039
from itertools import chain
@@ -2046,6 +2045,9 @@ def sort_in_category(self, schema, table, oemetadata):
20462045

20472046
# Flatten the nested JSON into [{'field': k, 'value': v}, ...]
20482047
flattened = self.parse_keys(oemetadata)
2048+
flattened = [
2049+
item for item in flattened if item["field"].startswith("resources.")
2050+
]
20492051

20502052
bucket_map = {
20512053
"spatial": "spatial",

0 commit comments

Comments
 (0)