Make get all notications return in csv format too:

* This adds functionality (via an extra req param) to the
* existing get all notifications method allowing us to specify
* when we want the API to return in csv/non-csv format
This commit is contained in:
Imdad Ahad
2017-04-20 12:31:49 +01:00
parent 9fbd43c072
commit 4dfd5448ad
3 changed files with 37 additions and 10 deletions

View File

@@ -490,6 +490,7 @@ class NotificationsFilterSchema(ma.Schema):
include_jobs = fields.Boolean(required=False)
include_from_test_key = fields.Boolean(required=False)
older_than = fields.UUID(required=False)
format_for_csv = fields.String()
@pre_load
def handle_multidict(self, in_data):