@@ -424,7 +424,11 @@ def update_search_history_menu(timestamp, history):
424
424
] + [
425
425
dmc .MenuItem (
426
426
item ,
427
- id = {"type" : "search_bar_completion" , "index" : 1000 + i , "text" : item },
427
+ id = {
428
+ "type" : "search_bar_completion" ,
429
+ "index" : 1000 + i ,
430
+ "text" : str (item ),
431
+ },
428
432
)
429
433
for i , item in enumerate (history [::- 1 ])
430
434
]
@@ -1155,7 +1159,7 @@ def results(n_submit, n_clicks, s_n_clicks, searchurl, value, history, show_tabl
1155
1159
"partial" if query .get ("partial" ) else "exact" , query ["object" ]
1156
1160
)
1157
1161
pdf = request_api (
1158
- "/api/v1/explorer " ,
1162
+ "/api/v1/objects " ,
1159
1163
json = {
1160
1164
"objectId" : query ["object" ],
1161
1165
},
@@ -1217,7 +1221,7 @@ def results(n_submit, n_clicks, s_n_clicks, searchurl, value, history, show_tabl
1217
1221
1218
1222
payload ["window" ] = window
1219
1223
1220
- pdf = request_api ("/api/v1/explorer " , json = payload )
1224
+ pdf = request_api ("/api/v1/conesearch " , json = payload )
1221
1225
1222
1226
colnames_to_display = {
1223
1227
"i:objectId" : "objectId" ,
@@ -1253,35 +1257,6 @@ def results(n_submit, n_clicks, s_n_clicks, searchurl, value, history, show_tabl
1253
1257
1254
1258
pdf = request_api ("/api/v1/latests" , json = payload )
1255
1259
1256
- elif query ["action" ] == "daterange" :
1257
- # Date range search
1258
- msg = "Objects in date range"
1259
-
1260
- payload = {}
1261
-
1262
- if "after" in query ["params" ]:
1263
- startdate = isoify_time (query ["params" ]["after" ])
1264
-
1265
- msg += " after {}" .format (startdate )
1266
-
1267
- payload ["startdate" ] = startdate
1268
-
1269
- if "before" in query ["params" ]:
1270
- stopdate = isoify_time (query ["params" ]["before" ])
1271
-
1272
- msg += " before {}" .format (stopdate )
1273
-
1274
- payload ["stopdate" ] = stopdate
1275
-
1276
- elif "window" in query ["params" ]:
1277
- window = query ["params" ]["window" ]
1278
-
1279
- msg += " window {} days" .format (window )
1280
-
1281
- payload ["window" ] = window
1282
-
1283
- pdf = request_api ("/api/v1/explorer" , json = payload )
1284
-
1285
1260
elif query ["action" ] == "anomaly" :
1286
1261
# Anomaly search
1287
1262
n_last = int (query ["params" ].get ("last" , 100 ))
0 commit comments