mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
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:
co-authored by
Adrian Kumpf
parent
a1f708b89c
commit
976e232745
@@ -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": [
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user