switched inner join for left join

This commit is contained in:
jude 2020-11-04 21:56:09 +00:00
parent 43824bc374
commit 5d4bed30ae

View File

@ -361,15 +361,15 @@ struct LookReminder {
time: u32, time: u32,
channel: u64, channel: u64,
content: String, content: String,
description: String, description: Option<String>,
} }
impl LookReminder { impl LookReminder {
fn display_content(&self) -> &str { fn display_content(&self) -> String {
if self.content.len() > 0 { if self.content.len() > 0 {
self.content.as_str() self.content.clone()
} else { } else {
self.description.as_str() self.description.clone().unwrap_or(String::from(""))
} }
} }
} }
@ -411,7 +411,7 @@ INNER JOIN
messages messages
ON ON
messages.id = reminders.message_id messages.id = reminders.message_id
INNER JOIN LEFT JOIN
embeds embeds
ON ON
embeds.id = messages.embed_id embeds.id = messages.embed_id
@ -447,7 +447,7 @@ INNER JOIN
messages messages
ON ON
messages.id = reminders.message_id messages.id = reminders.message_id
INNER JOIN LEFT JOIN
embeds embeds
ON ON
embeds.id = messages.embed_id embeds.id = messages.embed_id
@ -539,7 +539,7 @@ INNER JOIN
messages messages
ON ON
messages.id = reminders.message_id messages.id = reminders.message_id
INNER JOIN LEFT JOIN
embeds embeds
ON ON
embeds.id = messages.embed_id embeds.id = messages.embed_id
@ -562,7 +562,7 @@ INNER JOIN
messages messages
ON ON
reminders.message_id = messages.id reminders.message_id = messages.id
INNER JOIN LEFT JOIN
embeds embeds
ON ON
embeds.id = messages.embed_id embeds.id = messages.embed_id