Skip to content

Commit 77a77ec

Browse files
committed
🐛调整项目删除字段更新逻辑
1 parent c8caf82 commit 77a77ec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

server/projects/main/apps/codeproj/models/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def remark_info(self):
493493
else:
494494
return {}
495495

496-
def update_remark(self, **kwargs):
496+
def update_remark(self, kwargs):
497497
"""更新备注信息
498498
"""
499499
self.remark = json.dumps(self.remark_info.update(**kwargs))

server/projects/main/apps/codeproj/serializers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ def update(self, instance, validated_data):
14021402
user = self.context["request"].user
14031403
status = validated_data.get("status")
14041404
if status == models.Project.StatusEnum.ARCHIVED_WITHOUT_CLEAN:
1405-
instance.update_remark(**{
1405+
instance.update_remark({
14061406
"archived_time": str(localnow()),
14071407
"clean_time": str(localnow() + settings.PROJECT_ARCHIVE_CLEAN_TIMEOUT)})
14081408
elif status == models.Project.StatusEnum.ACTIVE \

0 commit comments

Comments
 (0)