Skip to content

Commit

Permalink
Select only blob_md5 when checking existing parameters file
Browse files Browse the repository at this point in the history
  • Loading branch information
equinor-ruaj committed Oct 15, 2024
1 parent 6c53e62 commit c7c24df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fmu/sumo/uploader/_upload_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def _upload_files(
paramfile = get_parameter_file(parameters_path, config_path)
# Check if the parameters file does not exist or if it has changed
query = f"fmu.case.uuid:{sumo_parent_id} AND fmu.realization.uuid:{realization_id} AND data.content:parameters"
search_res = sumoclient.get("/search", {"$query": query}).json()
search_res = sumoclient.get(
"/search", {"$query": query, "$select": "_sumo.blob_md5"}
).json()
if (
search_res["hits"]["total"]["value"] == 0
or search_res["hits"]["hits"][0]["_source"]["_sumo"][
Expand Down

0 comments on commit c7c24df

Please sign in to comment.