Deliver enum channel as both numeric and stringified

This commit is contained in:
Dominik Werder committed 2024-09-03 22:14:43 +02:00
1 parent 4cc0f65a0b
commit 55b3bf4acd
21 files changed
+712 -204

No files matched your search

-5
View File
@@ -192,11 +192,6 @@ impl FromUrl for BinnedQuery {
channel: SfDbChannel::from_pairs(&pairs)?,
range: SeriesRange::from_pairs(pairs)?,
bin_count: pairs.get("binCount").map_or(None, |x| x.parse().ok()).unwrap_or(10),
// bin_count: pairs
// .get("binCount")
// .ok_or_else(|| Error::with_msg_no_trace("missing binCount"))?
// .parse()
// .map_err(|e| Error::with_msg_no_trace(format!("can not parse binCount {:?}", e)))?,
transform: TransformQuery::from_pairs(pairs)?,
cache_usage: CacheUsage::from_pairs(&pairs)?,
buf_len_disk_io: pairs