- Remove useless prints

- Enable security
- Update apidocs
This commit is contained in:
Guille Gutierrez 2023-11-28 07:49:59 +01:00
parent 0661ab21ec
commit 3d3a20f560
3 changed files with 2 additions and 265 deletions

File diff suppressed because one or more lines are too long

View File

@ -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']

View File

@ -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}