fix public block list not working because of old kwarg format

This commit is contained in:
Kevin Froman 2020-08-20 20:00:44 -05:00
parent 2cf7a8c8b3
commit fd73f63ecd

View File

@ -29,7 +29,7 @@ from .. import apiutils
def get_public_block_list(publicAPI, request): def get_public_block_list(publicAPI, request):
# Provide a list of our blocks, with a date offset # Provide a list of our blocks, with a date offset
dateAdjust = request.args.get('date') dateAdjust = request.args.get('date')
bList = blockmetadb.get_block_list(dateRec=dateAdjust) bList = blockmetadb.get_block_list(date_rec=dateAdjust)
share_list = '' share_list = ''
if config.get('general.hide_created_blocks', True): if config.get('general.hide_created_blocks', True):
for b in publicAPI.hideBlocks: for b in publicAPI.hideBlocks: