Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
nengyuanzhang committed Jun 3, 2024
2 parents 3590ebb + 0869374 commit 777dd3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myems-api/core/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,10 +1029,10 @@ def on_get(req, resp, id_):
raise falcon.HTTPError(status=falcon.HTTP_404, title='API.NOT_FOUND',
description='API.SPACE_NOT_FOUND')

query = (" SELECT e.id, e.name, e.uuid "
query = (" SELECT e.id, e.name, e.uuid, e.phase_of_lifecycle "
" FROM tbl_spaces s, tbl_spaces_energy_storage_power_stations se, tbl_energy_storage_power_stations e "
" WHERE se.space_id = s.id AND e.id = se.energy_storage_power_station_id AND s.id = %s "
" ORDER BY e.name ")
" ORDER BY e.phase_of_lifecycle, e.id ")
cursor.execute(query, (id_,))
rows = cursor.fetchall()

Expand Down

0 comments on commit 777dd3e

Please sign in to comment.