Merge branch 'develop'
commit
227fb6b20b
|
@ -59,7 +59,7 @@ Install and run with waitress:
|
||||||
```bash
|
```bash
|
||||||
pip install waitress
|
pip install waitress
|
||||||
cd myems\myems-api
|
cd myems\myems-api
|
||||||
waitress-serve --listen=127.0.0.1:8000 app:api
|
waitress-serve --listen=0.0.0.0:8000 app:api
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ class VirtualMeterCollection:
|
||||||
query_variables = (" SELECT v.id, v.name, v.meter_type, v.meter_id "
|
query_variables = (" SELECT v.id, v.name, v.meter_type, v.meter_id "
|
||||||
" FROM tbl_virtual_meters vm, tbl_variables v "
|
" FROM tbl_virtual_meters vm, tbl_variables v "
|
||||||
" WHERE vm.id = %s AND v.virtual_meter_id = vm.id "
|
" WHERE vm.id = %s AND v.virtual_meter_id = vm.id "
|
||||||
" ORDER BY SUBSTRING(v.name,2) + 0 ")
|
" ORDER BY SUBSTRING(v.name, 2, 10) + 0 ")
|
||||||
cursor.execute(query_variables, (meta_result['id'],))
|
cursor.execute(query_variables, (meta_result['id'],))
|
||||||
rows_variables = cursor.fetchall()
|
rows_variables = cursor.fetchall()
|
||||||
if rows_variables is not None:
|
if rows_variables is not None:
|
||||||
|
|
Loading…
Reference in New Issue