Skip to content

Commit c02fb7c

Browse files
committed
fix: 后台无法修改永久取件码的信息
1 parent 95f5e0d commit c02fb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/admin/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ async def update_file(
167167
update_data["prefix"] = data.prefix
168168
if data.suffix is not None and data.suffix != file_code.suffix:
169169
update_data["suffix"] = data.suffix
170-
if data.expired_at is not None and data.expired_at != file_code.expired_at:
170+
if data.expired_at is not None and data.expired_at != "" and data.expired_at != file_code.expired_at:
171171
update_data["expired_at"] = data.expired_at
172172
if data.expired_count is not None and data.expired_count != file_code.expired_count:
173173
update_data["expired_count"] = data.expired_count

0 commit comments

Comments
 (0)