Bugfix: Correct SQL. Fixes #63

This commit is contained in:
Starbeamrainbowlabs 2020-05-15 18:23:53 +01:00
parent cdb656b4b3
commit 552a640600
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -1,6 +1,6 @@
{ {
"name": "air-quality-mapper", "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.", "description": "The web interface and JSON api for the ConnectedHumber Air Quality Monitoring Project.",
"private": true, "private": true,
"main": "index.mjs", "main": "index.mjs",