-
Notifications
You must be signed in to change notification settings - Fork 0
Fix #108 - Handle templated answers #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
@fpayer, it's not done yet but does this look like what you were thinking? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All in all, I'm making good progress, but I still need to write unit and integration tests to validate that the rendering is working the way I expect.
if isinstance(self.environment, list): | ||
return self.environment | ||
|
||
return {k: (v(team_seed) if isinstance(v, Callable) else v) for k, v in self.environment.items()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might need to alias the callable to something that more clearly specifies that it's input is the team seed and the output is the seed for the variable.
|
||
if TYPE_CHECKING: | ||
from ....event.models.Event import Event | ||
|
||
# TODO: Will this handle updating challenges as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is getting a bit larger than I prefer so I'll probably handle updating challenges in a separate PR after this one is merged.
@@ -14,4 +14,6 @@ gevent-websocket==0.10.1 | |||
types-Flask-SocketIO==5.5.0.20250809 | |||
#redis==6.2.0 | |||
docker==7.1.0 | |||
types-docker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we pin to a specific version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, this is exactly what I was looking for!
Looks good to me. Just left a small comment about potentially pinning the version on the requirements.
No description provided.