You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#This line is added to strip out the extensions. Not sure if this works across the board for all collections but it seem to work on few collections that were tested.
231
-
cmr_granule=granule.rsplit( ".", 1 )[ 0 ]
232
-
params= [
233
-
('page_size', page_size),
234
-
('sort_key', "-start_date"),
235
-
('provider', provider),
236
-
('ShortName', short_name),
237
-
('GranuleUR[]', cmr_granule),
238
-
('token', token),
239
-
]
240
-
#jmcnelis, 2023/06/14 - provide for wildcards in granuleur-based search
231
+
ifgranuleisnotNone:
232
+
# This line is added to strip out the extensions. Not sure if this works across the board for all collections,
233
+
# but it seems to work on few collections that were tested.
234
+
# This isn't perfect, since it cannot deal with compound extensions
235
+
cmr_granule=granule.rsplit(".", 1)[0]
236
+
params.append(('GranuleUR[]', cmr_granule))
237
+
# jmcnelis, 2023/06/14 - provide for wildcards in granuleur-based search
0 commit comments