def get(self,request,*args,**kwargs):
try:<EOL><INDENT>year = int(self.kwargs.get('<STR_LIT>'))<EOL><DEDENT>except (ValueError, TypeError):<EOL><INDENT>year = getIntFromGet(request,'<STR_LIT>')<EOL><DEDENT>kwargs.update({<EOL>'<STR_LIT>': year,<EOL>'<STR_LIT>': request.GET.get('<STR_LIT>'),<EOL>})<EOL>if kwargs.get('<STR_LIT>') not in EXPENSE_BASES.keys():<EOL><INDENT>kwargs['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>return super().get(request, *args, **kwargs)<EOL>
Allow passing of basis and time limitations