CTFd / CTFd

CTFs as you need them

Home Page:https://ctfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting dynamic challenges by ID does not return decay function

Jus-Codin opened this issue · comments

When getting a dynamic challenge from GET /api/v1/challenges/<challenge-id>, the challenge does not return its decay function.

This seems to be caused by this function which does not include challenge.function.

This seems be have been missed out when implementing different decay functions for dynamic challenges. This does not have any impact on normal usage of CTFd, but I see no reason not to include the function in the response.