Commit 78bdaded authored by 李小芳's avatar 李小芳

更新es的配置

parent 92f41ade
......@@ -1403,7 +1403,7 @@ class Diary(models.Model):
start_time = int(time.mktime(index_limit_start_time.timetuple()))
end_time = int(time.mktime(index_limit_end_time.timetuple()))
now = int(time.time())
if start_time < now and now < end_time:
if start_time <= now and now < end_time:
limit_weight = index_limit_weight2
return limit_weight
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment