Skip to content

Commit

Permalink
Fix historic queries to show all services
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jun 20, 2024
1 parent 75bd952 commit 8050346
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const chartTemplates: any[] = [
query: `WITH objs AS
(SELECT :org-field as office,
jsonb_array_elements("manualBudget"::JSONB) AS obj
FROM activities
FROM all_activities
WHERE :where AND "manualBudget" IS NOT NULL
AND "manualBudget" != 'null' )
SELECT office as "משרד",
Expand Down Expand Up @@ -285,7 +285,7 @@ export const chartTemplates: any[] = [
query: `WITH objs AS
(SELECT :org-field as office,
jsonb_array_elements(suppliers::JSONB) AS obj
FROM activities
FROM all_activities
WHERE :where and suppliers IS NOT NULL
AND suppliers != 'null'),
years AS
Expand Down Expand Up @@ -592,7 +592,7 @@ export const chartTemplates: any[] = [
id: 'supplier_kind_trend',
query: `/*xxx*/ WITH objs AS
(SELECT jsonb_array_elements(suppliers::JSONB) AS obj
FROM activities
FROM all_activities
WHERE :where and suppliers IS NOT NULL
AND suppliers != 'null'),
years AS
Expand All @@ -618,7 +618,7 @@ export const chartTemplates: any[] = [
ORDER BY 1`,
subtitleQuery: `WITH objs AS
(SELECT jsonb_array_elements(suppliers::JSONB) AS obj
FROM activities
FROM all_activities
WHERE :where and suppliers IS NOT NULL
AND suppliers != 'null'),
years AS
Expand Down

0 comments on commit 8050346

Please sign in to comment.