修改更新剧信息的bug

This commit is contained in:
xbh 2025-11-09 21:19:10 +08:00
parent 79c8a66c80
commit d3929f2e35

View File

@ -1322,11 +1322,7 @@ def update_content_classification():
end_of_day = datetime.combine(today, datetime.max.time())
mgmt_doc = rankings_management_collection.find_one({
"mix_name": mix_name,
"$or": [
{"created_at": {"$gte": start_of_day, "$lte": end_of_day}},
{"last_updated": {"$gte": start_of_day, "$lte": end_of_day}}
]
"mix_name": mix_name
})
if not mgmt_doc:
return jsonify({"success": False, "message": f"未找到短剧: {mix_name}"})