@golemio/energetics 1.13.1-dev.2769672204 → 1.13.1-dev.2773070597

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -347,30 +347,6 @@ monthly AS (
347
347
  INNER JOIN invoice_month i ON i.place_id = p.place_id
348
348
  WHERE p.commodity = 'gas'
349
349
 
350
- UNION ALL
351
-
352
- SELECT
353
- p.gid,
354
- p.place_id,
355
- p.id_type,
356
- p.commodity,
357
- 'porsenna',
358
- 'monthly',
359
- pp.period_start,
360
- pp.value,
361
- pp.unit,
362
- CASE WHEN lower(pp.unit) = 'kwh' THEN pp.value ELSE NULL END,
363
- NULL,
364
- pp.days_covered,
365
- false,
366
- '{}'::text[]
367
- FROM point p
368
- CROSS JOIN bounds b
369
- INNER JOIN porsenna_period pp
370
- ON pp.place_id = p.place_id AND pp.commodity = p.commodity
371
- WHERE pp.period_type = 'monthly'
372
- AND pp.period_start >= b.month_from::date
373
- AND pp.period_start < b.month_to::date
374
350
  ),
375
351
 
376
352
  yearly_rollup AS (
@@ -390,14 +366,6 @@ yearly_rollup AS (
390
366
  sum(days_covered) AS days_covered,
391
367
  bool_or(is_estimated) AS is_estimated
392
368
  FROM monthly m
393
- WHERE NOT (m.source = 'porsenna' AND EXISTS (
394
- SELECT 1
395
- FROM porsenna_period pp
396
- WHERE pp.period_type = 'yearly'
397
- AND pp.place_id = m.place_id
398
- AND pp.commodity = m.commodity
399
- AND pp.period_start = date_trunc('year', m.period_start)::date
400
- ))
401
369
  GROUP BY gid, place_id, id_type, commodity, source, date_trunc('year', period_start)::date, unit
402
370
  ),
403
371
  yearly AS (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/energetics",
3
- "version": "1.13.1-dev.2769672204",
3
+ "version": "1.13.1-dev.2773070597",
4
4
  "description": "Golemio Energetics Module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",