# -*- coding: utf8 -*-
# This file is part of PYBOSSA.
#
# Copyright (C) 2015 Scifabric LTD.
#
# PYBOSSA is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PYBOSSA is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with PYBOSSA.  If not, see <http://www.gnu.org/licenses/>.
"""
PYBOSSA api module for exposing domain object ProjectStats via an API.
"""
from flask import request
from werkzeug.exceptions import BadRequest
from pybossa.model.project_stats import ProjectStats
from api_base import APIBase


class ProjectStatsAPI(APIBase):

    """Class for domain object ProjectStats."""

    __class__ = ProjectStats

    def _select_attributes(self, stats_data):
      if request.args.get('full'):
        return stats_data
      del stats_data['info']['hours_stats']
      del stats_data['info']['dates_stats']
      del stats_data['info']['users_stats']
      return stats_data

@@ -1124,16 +1124,18 @@
 :%0A      
+  
 if reque
@@ -1159,24 +1159,28 @@
 '):%0A        
+    
 return stats
@@ -1187,24 +1187,26 @@
 _data%0A      
+ 
+ 
 del stats_da
@@ -1223,32 +1223,34 @@
 %5B'hours_stats'%5D%0A
+  
       del stats_
@@ -1279,24 +1279,26 @@
 ats'%5D%0A      
+ 
+ 
 del stats_da
@@ -1319,24 +1319,26 @@
 ers_stats'%5D%0A
+  
       return

Fix indentation