mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2026-03-03 23:20:53 +01:00
Optimize
This commit is contained in:
@@ -127,7 +127,7 @@ impl FromVecExpression<Book> for Book {
|
||||
},
|
||||
uploaded: match &value[2] {
|
||||
sql_parse::Expression::String(v) => {
|
||||
NaiveDateTime::parse_from_str(&v.value.to_string(), "%Y-%m-%d %H:%M:%S")
|
||||
NaiveDateTime::parse_from_str(&v.value, "%Y-%m-%d %H:%M:%S")
|
||||
.unwrap()
|
||||
.date()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user