patch for times on del output being bad. patch for look output not being ordered. patch for user todo list being restricted

This commit is contained in:
jude 2020-10-29 20:25:37 +00:00
parent 0a016ad564
commit 41e5f32374
4 changed files with 7 additions and 4 deletions

2
Cargo.lock generated
View File

@ -1175,7 +1175,7 @@ dependencies = [
[[package]] [[package]]
name = "reminder_rs" name = "reminder_rs"
version = "1.1.7" version = "1.1.8"
dependencies = [ dependencies = [
"Inflector", "Inflector",
"async-trait", "async-trait",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "reminder_rs" name = "reminder_rs"
version = "1.1.7" version = "1.1.8"
authors = ["jellywx <judesouthworth@pm.me>"] authors = ["jellywx <judesouthworth@pm.me>"]
edition = "2018" edition = "2018"

View File

@ -404,6 +404,8 @@ WHERE
channels.guild_id = (SELECT id FROM guilds WHERE guild = ?) AND channels.guild_id = (SELECT id FROM guilds WHERE guild = ?) AND
channels.channel = ? AND channels.channel = ? AND
FIND_IN_SET(reminders.enabled, ?) FIND_IN_SET(reminders.enabled, ?)
ORDER BY
reminders.time
LIMIT LIMIT
? ?
", ",
@ -433,6 +435,8 @@ ON
WHERE WHERE
channels.channel = ? AND channels.channel = ? AND
FIND_IN_SET(reminders.enabled, ?) FIND_IN_SET(reminders.enabled, ?)
ORDER BY
reminders.time
LIMIT LIMIT
? ?
", ",
@ -555,7 +559,7 @@ WHERE
count + 1, count + 1,
reminder.content, reminder.content,
reminder.channel, reminder.channel,
time.format("%Y-%m-%D %H:%M:%S") time.format("%Y-%m-%d %H:%M:%S")
) )
}); });

View File

@ -380,7 +380,6 @@ impl Execute for Result<SubCommand, ()> {
} }
#[command] #[command]
#[permission_level(Managed)]
async fn todo_user(ctx: &Context, msg: &Message, args: String) { async fn todo_user(ctx: &Context, msg: &Message, args: String) {
let mut split = args.split(' '); let mut split = args.split(' ');