Compare commits
2 Commits
1f9a854122
...
23595e8008
| Author | SHA1 | Date | |
|---|---|---|---|
| 23595e8008 | |||
|
3c111212f0
|
@@ -116,7 +116,7 @@ impl Quote {
|
|||||||
pub fn get_newest_public(conn: &Connection) -> Result<Option<Quote>, QuoteError> {
|
pub fn get_newest_public(conn: &Connection) -> Result<Option<Quote>, QuoteError> {
|
||||||
let id: Option<Uuid> = conn
|
let id: Option<Uuid> = conn
|
||||||
.query_row(
|
.query_row(
|
||||||
"SELECT id FROM quotes ORDER BY id DESC LIMIT 1 WHERE public = 1",
|
"SELECT id FROM quotes WHERE public = 1 ORDER BY id DESC LIMIT 1",
|
||||||
(),
|
(),
|
||||||
|r| r.get(0),
|
|r| r.get(0),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user