From 5d4bed30aefef84c321a3155b950d49020f1c93a Mon Sep 17 00:00:00 2001 From: jude Date: Wed, 4 Nov 2020 21:56:09 +0000 Subject: [PATCH] switched inner join for left join --- src/commands/reminder_cmds.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/commands/reminder_cmds.rs b/src/commands/reminder_cmds.rs index fe5b195..c013faf 100644 --- a/src/commands/reminder_cmds.rs +++ b/src/commands/reminder_cmds.rs @@ -361,15 +361,15 @@ struct LookReminder { time: u32, channel: u64, content: String, - description: String, + description: Option, } impl LookReminder { - fn display_content(&self) -> &str { + fn display_content(&self) -> String { if self.content.len() > 0 { - self.content.as_str() + self.content.clone() } else { - self.description.as_str() + self.description.clone().unwrap_or(String::from("")) } } } @@ -411,7 +411,7 @@ INNER JOIN messages ON messages.id = reminders.message_id -INNER JOIN +LEFT JOIN embeds ON embeds.id = messages.embed_id @@ -447,7 +447,7 @@ INNER JOIN messages ON messages.id = reminders.message_id -INNER JOIN +LEFT JOIN embeds ON embeds.id = messages.embed_id @@ -539,7 +539,7 @@ INNER JOIN messages ON messages.id = reminders.message_id -INNER JOIN +LEFT JOIN embeds ON embeds.id = messages.embed_id @@ -562,7 +562,7 @@ INNER JOIN messages ON reminders.message_id = messages.id -INNER JOIN +LEFT JOIN embeds ON embeds.id = messages.embed_id