Skip to content

Commit

Permalink
Fix broken API endpoint
Browse files Browse the repository at this point in the history
Flipping the date conversion work around I forgot to turn it
into a string.

curl -X GET "http://127.0.0.1:5000/api/data/fmt-overview/1" -H "accept: application/json"
  • Loading branch information
ross-spencer committed Dec 3, 2020
1 parent 1d0541f commit ecccc40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AIPscan/Data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def aip_overview_two(storage_service_id, original_files=True):
for aip in aips:
report[aip.uuid] = {}
report[aip.uuid][FIELD_AIP_NAME] = aip.transfer_name
report[aip.uuid][FIELD_CREATED_DATE] = _simplify_datetime(aip.create_date)
report[aip.uuid][FIELD_CREATED_DATE] = _simplify_datetime(aip.create_date, False)
report[aip.uuid][FIELD_AIP_SIZE] = 0
report[aip.uuid][FIELD_FORMATS] = {}
files = None
Expand Down

0 comments on commit ecccc40

Please sign in to comment.