Bugfix: Correct SQL. Fixes #63

This commit is contained in:
Starbeamrainbowlabs 2020-05-15 18:23:53 +01:00
parent 5f3dc49802
commit 179430f6b8
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";
if($only_with_location)
$sql .= "\nWHERE
$sql .= "\nAND
{$s("column_lat")} IS NOT NULL
AND {$s("column_long")} IS NOT NULL";

View File

@ -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",