This commit is contained in:
xuyue committed 2026-06-07 05:50:47 -06:00
1 parent 9fbab91cf9
commit cd6d67ac97
5 files changed
+43

No files matched your search

+3
View File
@@ -68,6 +68,9 @@ def create_or_update(request, payload: ChallengeIn):
item.content = payload.content
item.score = payload.score
item.is_public = payload.is_public
item.example_html = payload.example_html
item.example_css = payload.example_css
item.example_js = payload.example_js
if item.author_id is None and request.user.is_authenticated:
item.author = request.user
item.save()