myems-api/reports/spaceincome.py 1 location
|
@@ 195-210 (lines=16) @@
|
192 |
|
" WHERE uuid = %s ", (space_uuid,)) |
193 |
|
row_space = cursor_system.fetchone() |
194 |
|
|
195 |
|
if row_space is None: |
196 |
|
if cursor_system: |
197 |
|
cursor_system.close() |
198 |
|
if cnx_system: |
199 |
|
cnx_system.close() |
200 |
|
|
201 |
|
if cursor_billing: |
202 |
|
cursor_billing.close() |
203 |
|
if cnx_billing: |
204 |
|
cnx_billing.close() |
205 |
|
|
206 |
|
if cursor_historical: |
207 |
|
cursor_historical.close() |
208 |
|
if cnx_historical: |
209 |
|
cnx_historical.close() |
210 |
|
raise falcon.HTTPError(status=falcon.HTTP_404, title='API.NOT_FOUND', description='API.SPACE_NOT_FOUND') |
211 |
|
|
212 |
|
space = dict() |
213 |
|
space['id'] = row_space[0] |
myems-api/reports/spacecost.py 1 location
|
@@ 195-210 (lines=16) @@
|
192 |
|
" WHERE uuid = %s ", (space_uuid,)) |
193 |
|
row_space = cursor_system.fetchone() |
194 |
|
|
195 |
|
if row_space is None: |
196 |
|
if cursor_system: |
197 |
|
cursor_system.close() |
198 |
|
if cnx_system: |
199 |
|
cnx_system.close() |
200 |
|
|
201 |
|
if cursor_billing: |
202 |
|
cursor_billing.close() |
203 |
|
if cnx_billing: |
204 |
|
cnx_billing.close() |
205 |
|
|
206 |
|
if cursor_historical: |
207 |
|
cursor_historical.close() |
208 |
|
if cnx_historical: |
209 |
|
cnx_historical.close() |
210 |
|
raise falcon.HTTPError(status=falcon.HTTP_404, title='API.NOT_FOUND', description='API.SPACE_NOT_FOUND') |
211 |
|
|
212 |
|
space = dict() |
213 |
|
space['id'] = row_space[0] |