Skip to content

Commit

Permalink
Fix missing subunit download
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Mar 4, 2024
1 parent 40f3d45 commit 12d1858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const tableDefs = {
name: 'הליכי רכש',
query: `
with t as (
select office || ' / ' || unit || ' / ' || subunit as org_unit,
select case when subunit is null then office || ' / ' || unit else office || ' / ' || unit || ' / ' || subunit end as org_unit,
id, kind, name,
jsonb_array_elements(tenders) as tenders
from activities where :where and tenders is not null and tenders::text != 'null'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const tableDefs = {
name: 'הליכי רכש',
query: `
with t as (
select office || ' / ' || unit || ' / ' || subunit as org_unit,
select case when subunit is null then office || ' / ' || unit else office || ' / ' || unit || ' / ' || subunit end as org_unit,
jsonb_array_elements(tenders) as tenders
from activities where :where and tenders is not null and tenders::text != 'null'
), tt as (select tenders->>'tender_type_he' as tender_type_he,
Expand Down

0 comments on commit 12d1858

Please sign in to comment.