mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-08-29 03:56:57 +08:00
fix: 默认时间戳视为 None
This commit is contained in:
@@ -164,6 +164,7 @@ pub async fn get_video_sources_details(
|
|||||||
if let Some(rule) = &item.rule {
|
if let Some(rule) = &item.rule {
|
||||||
item.rule_display = Some(rule.to_string());
|
item.rule_display = Some(rule.to_string());
|
||||||
}
|
}
|
||||||
|
item.latest_row_at = item.latest_row_at.filter(|dt| dt.and_utc().timestamp() != 0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Ok(ApiResponse::ok(VideoSourcesDetailsResponse {
|
Ok(ApiResponse::ok(VideoSourcesDetailsResponse {
|
||||||
|
|||||||
Reference in New Issue
Block a user