def _get_period(self):
        period = self.request.query_params.get('period')
        if period is None:
            today = datetime.date.today()
            period = '%s-%s' % (today.year, today.month)
        return period
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/views.py/ResourceViewSet._get_period/original