mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-22 10:25:01 +00:00
[server/list-devices] Tweak prorperty names
This commit is contained in:
parent
f0781948f3
commit
4a2b8fc3c6
1 changed files with 4 additions and 4 deletions
|
@ -36,10 +36,10 @@ class MariaDBDeviceRepository implements IDeviceRepository {
|
|||
$s = $this->get_static;
|
||||
|
||||
$sql = "SELECT
|
||||
{$s("column_device_id")},
|
||||
{$s("column_device_name")},
|
||||
{$s("column_lat")},
|
||||
{$s("column_long")}
|
||||
{$s("column_device_id")} AS id,
|
||||
{$s("column_device_name")} AS name,
|
||||
{$s("column_lat")} AS latitude,
|
||||
{$s("column_long")} AS longitude
|
||||
FROM {$s("table_name")}";
|
||||
|
||||
if($only_with_location)
|
||||
|
|
Loading…
Reference in a new issue