Skip to content
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

Refactor: penalty in mongo/homework.py #253

Open
as535364 opened this issue Jun 7, 2023 · 1 comment
Open

Refactor: penalty in mongo/homework.py #253

as535364 opened this issue Jun 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@as535364
Copy link
Member

as535364 commented Jun 7, 2023

No description provided.

@as535364 as535364 added the enhancement New feature or request label Jun 7, 2023
@as535364 as535364 changed the title Refactor: penalty in homework.py Refactor: penalty in mongo/homework.py Jun 7, 2023
@Bogay
Copy link
Member

Bogay commented Jul 3, 2023

這邊比較簡易的做法我認為是改用 eval 並且限制好計算實際分數時可用的 globals,回傳單一的分數即可。

要支援複雜一點的需求的話,可能類似 KRM Functions 那樣定義好 IO 格式,丟去沙盒跑吧 🤔,但就是等 @aokblast 重構完比較好做

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants