Align jq microcap execution with intraday snapshots

This commit is contained in:
boris
2026-04-20 12:13:59 +08:00
parent 0e2c25e4c4
commit 0fe681ff5f
10 changed files with 761 additions and 94 deletions

View File

@@ -1280,7 +1280,11 @@ mod optional_date_format {
D: Deserializer<'de>,
{
let text = Option::<String>::deserialize(deserializer)?;
match text.as_deref().map(str::trim).filter(|value| !value.is_empty()) {
match text
.as_deref()
.map(str::trim)
.filter(|value| !value.is_empty())
{
Some(text) => NaiveDate::parse_from_str(text, FORMAT)
.map(Some)
.map_err(serde::de::Error::custom),