From 7bd46564cd3777e12d996a53b99296e87017e60c Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Sun, 12 Dec 2021 01:02:23 +0300 Subject: [PATCH] Add links to images in diff output --- model/postgres_sql_requests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/postgres_sql_requests.py b/model/postgres_sql_requests.py index e725a6d..05519de 100644 --- a/model/postgres_sql_requests.py +++ b/model/postgres_sql_requests.py @@ -64,7 +64,8 @@ select_diff_by_action_id = """select new_livery.cur_price as "New Current Price", old_livery.orig_price as "Old Original Price", old_livery.cur_price as "Old Current Price", - new_livery.cur_price - old_livery.cur_price as "Current Price diff" + new_livery.cur_price - old_livery.cur_price as "Current Price diff", + 'https://dlc.elitedangerous.com/images/med/' || coalesce(new_livery.image_url, old_livery.image_url) as "URL to image" from ( select * from livery