소스 검색

use store code for display instead of store name

Pi 3 년 전
부모
커밋
4fc8ffae8b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      grocery_transactions.sh

+ 1 - 1
grocery_transactions.sh

@@ -62,7 +62,7 @@ BEGIN;
 $(cat - )
 SELECT
   date_part('day',ts)||'/'||date_part('month',ts)||' '||date_part('hour',ts)::int%12 AS ts,
-  substr(store,1,4) AS shop,
+  code AS shop,
   substr(description,1,32) AS description,
   quantity AS volume,
   substr(unit,1,4) AS unit,