Skip to content

Commit

Permalink
Show desc in display
Browse files Browse the repository at this point in the history
  • Loading branch information
will-lynas committed Oct 15, 2024
1 parent 3927d4b commit 4a3269e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ async fn display(bot: Bot, msg: Message, pool: SqlitePool) -> HandlerResult {
.await
.unwrap_or_else(|| tx.user_id.to_string());
let line = format!(
"🏷️ {}\n💰 {}\n🥷 [{}](tg://user?id={})",
"🏷️ {}\n💰 {}\n🥷 [{}](tg://user?id={})\n📝 {}",
markdown::escape(&tx.title),
markdown::escape(&format_pounds(tx.amount)),
markdown::escape(&username),
tx.user_id
tx.user_id,
markdown::escape(&tx.description.unwrap_or("-".into()))
);
lines.push(line);
}
Expand Down

0 comments on commit 4a3269e

Please sign in to comment.