File tree Expand file tree Collapse file tree 2 files changed +5
-25
lines changed
core/stac_fastapi/core/extensions
sfeos_helpers/stac_fastapi/sfeos_helpers/filter Expand file tree Collapse file tree 2 files changed +5
-25
lines changed Original file line number Diff line number Diff line change 41
41
"description" : "Creation Timestamp" ,
42
42
"$ref" : "https://schemas.stacspec.org/v1.0.0/item-spec/json-schema/datetime.json#/properties/updated" ,
43
43
},
44
- "cloud_cover" : {
45
- "description" : "Cloud Cover" ,
46
- "$ref" : "https://stac-extensions.github.io/eo/v1.0.0/schema.json#/definitions/fields/properties/eo:cloud_cover" ,
47
- },
48
- "cloud_shadow_percentage" : {
49
- "title" : "Cloud Shadow Percentage" ,
50
- "description" : "Cloud Shadow Percentage" ,
51
- "type" : "number" ,
52
- "minimum" : 0 ,
53
- "maximum" : 100 ,
54
- },
55
- "nodata_pixel_percentage" : {
56
- "title" : "No Data Pixel Percentage" ,
57
- "description" : "No Data Pixel Percentage" ,
58
- "type" : "number" ,
59
- "minimum" : 0 ,
60
- "maximum" : 100 ,
61
- },
62
44
}
63
45
"""Queryables that are present in all collections."""
64
46
Original file line number Diff line number Diff line change @@ -49,13 +49,11 @@ async def get_queryables(
49
49
if not collection_id :
50
50
return queryables
51
51
52
- properties : Dict [str , Any ] = queryables ["properties" ]
53
- queryables .update (
54
- {
55
- "properties" : properties ,
56
- "additionalProperties" : False ,
57
- }
58
- )
52
+ properties : Dict [str , Any ] = queryables ["properties" ].copy ()
53
+ queryables .update ({
54
+ "properties" : properties ,
55
+ "additionalProperties" : False ,
56
+ })
59
57
60
58
mapping_data = await self .database .get_items_mapping (collection_id )
61
59
mapping_properties = next (iter (mapping_data .values ()))["mappings" ]["properties" ]
You can’t perform that action at this time.
0 commit comments