示例#1
0
 def post(self, request):
     request.data["award_levels"] = [
         "elasticsearch_transactions", "sub_awards"
     ]
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request,
                                     DownloadRequestType.AWARD)
示例#2
0
    def post(self, request):
        request.data["constraint_type"] = "year"

        # TODO: update front end to use the Common Filter Object and get rid of this function
        self.process_filters(request.data)

        return BaseDownloadViewSet.post(self, request, "award")
 def post(self, request):
     if is_experimental_elasticsearch_api(request):
         logger.info("Using experimental Elasticsearch functionality for '/download/transactions'")
         request.data["award_levels"] = ["elasticsearch_transactions", "sub_awards"]
     else:
         request.data["award_levels"] = ["transactions", "sub_awards"]
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request, "award")
示例#4
0
    def post(self, request):
        """Return url to pre-generated zip file"""

        return BaseDownloadViewSet.post(self, request,
                                        DownloadRequestType.DISASTER)
示例#5
0
 def post(self, request):
     request.data["constraint_type"] = "year"
     return BaseDownloadViewSet.post(self,
                                     request,
                                     origination="bulk_download",
                                     validator_type=AwardDownloadValidator)
示例#6
0
    def post(self, request):
        """Push a message to SQS with the validated request JSON"""

        return BaseDownloadViewSet.post(self, request, "account")
示例#7
0
 def post(self, request):
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request, "assistance")
示例#8
0
 def post(self, request):
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(
         self, request, validator_type=AssistanceDownloadValidator)
示例#9
0
 def post(self, request):
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request,
                                     DownloadRequestType.ASSISTANCE)
示例#10
0
 def post(self, request):
     request.data['award_levels'] = ['awards', 'sub_awards']
     request.data['constraint_type'] = 'row_count'
     return BaseDownloadViewSet.post(self, request, 'award')
示例#11
0
 def post(self, request):
     return BaseDownloadViewSet.post(self, request, 'idv')
 def post(self, request):
     request.data["award_levels"] = ["sub_awards"]
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self, request, "award")
 def post(self, request):
     return BaseDownloadViewSet.post(self, request, "assistance")
 def post(self, request):
     return BaseDownloadViewSet.post(self, request, "contract")
示例#15
0
 def post(self, request):
     return BaseDownloadViewSet.post(self, request,
                                     DownloadRequestType.DISASTER_RECIPIENT)
示例#16
0
 def post(self, request):
     request.data["award_levels"] = ["elasticsearch_awards", "sub_awards"]
     request.data["constraint_type"] = "row_count"
     return BaseDownloadViewSet.post(self,
                                     request,
                                     validator_type=AwardDownloadValidator)
示例#17
0
    def post(self, request):
        """Return url to pre-generated zip file"""

        return BaseDownloadViewSet.post(self,
                                        request,
                                        special_request_type="disaster")
示例#18
0
    def post(self, request):
        """Push a message to SQS with the validated request JSON"""

        return BaseDownloadViewSet.post(self, request,
                                        DownloadRequestType.ACCOUNT)
示例#19
0
 def post(self, request):
     return BaseDownloadViewSet.post(
         self, request, validator_type=DisasterRecipientDownloadValidator)