From fbc3893adb26bdcd21add999c3e19f6d44c5750e Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 29 Sep 2025 08:58:12 +0200 Subject: [PATCH] fix STEG kiss projects selection --- pgsql/scopes/select_kiss_projects.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pgsql/scopes/select_kiss_projects.sql b/pgsql/scopes/select_kiss_projects.sql index 2a83234..0e5f1b8 100644 --- a/pgsql/scopes/select_kiss_projects.sql +++ b/pgsql/scopes/select_kiss_projects.sql @@ -1,6 +1,7 @@ set search_path to kiss, public; -\a \C \t \f ; +--\a +\C \t \f ; \o ../data/projects_passiv.csv select m2.trackid id1 , m1.trackid idx, m1.data->>'community' Gemeinde, m1.item Projekt, @@ -14,7 +15,7 @@ where m1.domain='kiss' and m1.class='project' and m2.trackid = (select min(trackid) from messages m3 where m3.domain = m1.domain and m3.action = m1.action and m3.class = m1.class and m3.item = m1.item - and m3.data->>'projectState' = m1.data->>'projectState') + and (m3.data->>'projectState')::integer in (30, 40)) order by m1.data->>'community', m1.item --limit 20 --\g ../data/projects_passiv.csv