From a5ba46388c1ba54a8f097589542ed1dd40506105 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sun, 21 Jul 2019 10:29:04 -0500 Subject: [PATCH] Added number of days since restock to formatted_item_listing --- GeoffreyBot/GeoffreyApiHelper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GeoffreyBot/GeoffreyApiHelper.py b/GeoffreyBot/GeoffreyApiHelper.py index 666a5e6..65a3a5d 100644 --- a/GeoffreyBot/GeoffreyApiHelper.py +++ b/GeoffreyBot/GeoffreyApiHelper.py @@ -20,7 +20,8 @@ def format_message(msg_format, *args): def formatted_item_listing(item): - return format_message("{} {} for {}D", item["amount"], item["item_name"], item["price"]) + return format_message("{} {} for {}D, restocked {} day(s) ago", item["amount"], item["item_name"], + item["price"], item["days_since_restock"]) def formatted_location(location):