Browse Source

Bugfix: Correct SQL. Fixes #63

pull/65/head
Starbeamrainbowlabs 2 years ago
parent
commit
552a640600
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 2
      logic/Repositories/MariaDBDeviceRepository.php
  2. 2
      package.json

2
logic/Repositories/MariaDBDeviceRepository.php

@ -95,7 +95,7 @@ class MariaDBDeviceRepository implements IDeviceRepository { @@ -95,7 +95,7 @@ class MariaDBDeviceRepository implements IDeviceRepository {
WHERE {$s("table_name")}.{$s("column_visible")} != 0";
if($only_with_location)
$sql .= "\nWHERE
$sql .= "\nAND
{$s("column_lat")} IS NOT NULL
AND {$s("column_long")} IS NOT NULL";

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "air-quality-mapper",
"version": "0.13.4-dev",
"version": "0.13.4",
"description": "The web interface and JSON api for the ConnectedHumber Air Quality Monitoring Project.",
"private": true,
"main": "index.mjs",

Loading…
Cancel
Save