mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Fix regression from ded612d46b and fix https://github.com/CTFd/ctfcli/pull/20 (#1583)
* Fix regression for creating hints via ctfcli See #1582 for details. Closes https://github.com/CTFd/ctfcli/pull/20.
This commit is contained in:
@@ -9,9 +9,26 @@ class HintSchema(ma.ModelSchema):
|
||||
dump_only = ("id", "type", "html")
|
||||
|
||||
views = {
|
||||
"locked": ["id", "type", "challenge", "cost"],
|
||||
"unlocked": ["id", "type", "challenge", "content", "html", "cost"],
|
||||
"admin": ["id", "type", "challenge", "content", "html", "cost", "requirements"],
|
||||
"locked": ["id", "type", "challenge", "challenge_id", "cost"],
|
||||
"unlocked": [
|
||||
"id",
|
||||
"type",
|
||||
"challenge",
|
||||
"challenge_id",
|
||||
"content",
|
||||
"html",
|
||||
"cost",
|
||||
],
|
||||
"admin": [
|
||||
"id",
|
||||
"type",
|
||||
"challenge",
|
||||
"challenge_id",
|
||||
"content",
|
||||
"html",
|
||||
"cost",
|
||||
"requirements",
|
||||
],
|
||||
}
|
||||
|
||||
def __init__(self, view=None, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user