Updating the filter for supercharger (#2832)

* Updating the filter for supercharger

Updating the where clause for geofence and address as some of the superchargers are named as SuperCharger.

* Update grafana/dashboards/charging-stats.json

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>
This commit is contained in:
sultantariq
2022-08-02 11:50:02 +02:00
committed by GitHub
co-authored by Adrian Kumpf
parent a1f708b89c
commit 976e232745
+1 -1
View File
@@ -274,7 +274,7 @@
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n\tsum(cp.cost)\nFROM\n\tcharging_processes cp\nLEFT JOIN \n\taddresses addr ON addr.id = address_id\nLEFT JOIN\n geofences geo ON geo.id = geofence_id\nWHERE\n $__timeFilter(end_date)\n AND (addr.name LIKE '%Supercharger%' OR geo.name LIKE '%Supercharger%')\n\tAND cp.cost IS NOT NULL\n\tAND cp.car_id = $car_id;",
"rawSql": "SELECT\n\tsum(cp.cost)\nFROM\n\tcharging_processes cp\nLEFT JOIN \n\taddresses addr ON addr.id = address_id\nLEFT JOIN\n geofences geo ON geo.id = geofence_id\nWHERE\n $__timeFilter(end_date)\n AND (addr.name ILIKE '%supercharger%' OR geo.name ILIKE '%supercharger%')\n\tAND cp.cost IS NOT NULL\n\tAND cp.car_id = $car_id;",
"refId": "A",
"select": [
[