- Remove useless prints
- Enable security - Update apidocs
This commit is contained in:
parent
0661ab21ec
commit
3d3a20f560
File diff suppressed because one or more lines are too long
|
@ -27,12 +27,10 @@ class Building:
|
|||
self._roof_area = building_info.roof_area
|
||||
self._total_pv_area = building_info.total_pv_area
|
||||
self._energy_systems_archetype_name = building_info.system_name
|
||||
print(results)
|
||||
self._heating_consumption = {
|
||||
cte.YEAR: results['insel meb']['yearly_heating_consumption'],
|
||||
cte.MONTH: results['insel meb']['monthly_heating_consumption']
|
||||
}
|
||||
print(self._heating_consumption)
|
||||
self._cooling_consumption = {
|
||||
cte.YEAR: results['insel meb']['yearly_cooling_consumption'],
|
||||
cte.MONTH: results['insel meb']['monthly_cooling_consumption']
|
||||
|
|
|
@ -24,7 +24,7 @@ class RetrofitResults(Resource, Config):
|
|||
application_uuid = request.headers.get('application-uuid', None)
|
||||
_session = refresh_session(session_id, token, application_uuid)
|
||||
if _session is None:
|
||||
# return Response(json.dumps({'error': 'unauthorized'}), status=403)
|
||||
return Response(json.dumps({'error': 'unauthorized'}), status=403)
|
||||
application_id = 2
|
||||
user_id = 1
|
||||
token = {'token': 1}
|
||||
|
|
Loading…
Reference in New Issue
Block a user