From 37238bdf516dbe85355e2b67ce8e81c8caaea490 Mon Sep 17 00:00:00 2001 From: Johannes Dertmann Date: Mon, 8 Dec 2025 18:54:54 +0100 Subject: [PATCH] bugfixes --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/bot/command_help.rs | 2 +- src/database.rs | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 84f8914..32a5660 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,7 +13,7 @@ dependencies = [ [[package]] name = "allrisbot" -version = "0.1.3" +version = "0.1.4" dependencies = [ "bot-utils", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 202ff3c..5cae0df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ members = [ [package] name = "allrisbot" description = "Telegram bot that notifies users about newly published documents in the Allris 4 council information system" -version = "0.1.3" +version = "0.1.4" edition = "2024" repository = "https://github.com/jdertmann/AllrisBot" license = "AGPL-3.0-or-later" diff --git a/src/bot/command_help.rs b/src/bot/command_help.rs index a442239..d45c842 100644 --- a/src/bot/command_help.rs +++ b/src/bot/command_help.rs @@ -109,7 +109,7 @@ fn about_paragraph(owner: Option<&str>) -> impl WriteToMessage { msg.writeln(bold("👨‍💻 Mehr Infos & Kontakt"))?; msg.write(concat!( - "Der Quellcode dieses Bots steht unter der Lizenz", + "Der Quellcode dieses Bots steht unter der Lizenz ", text_link( "https://www.gnu.org/licenses/agpl-3.0.html.en", "GNU AGPL v3" diff --git a/src/database.rs b/src/database.rs index 56f51e5..7022c7c 100644 --- a/src/database.rs +++ b/src/database.rs @@ -563,7 +563,11 @@ implement_with_retry! { connection, chat_id: i64, ) -> ChatState { - let (last_sent, migrated) = connection.hget(registered_chat_key(chat_id), "last_sent,migrated").await?; + let (last_sent, migrated) = redis::cmd("hget") + .arg(registered_chat_key(chat_id)) + .arg("last_sent").arg("migrated") + .query_async(connection) + .await?; if let Some(last_sent) = last_sent { ChatState::Active { last_sent }