today = timezone.localtime(timezone.now()) end_date = today + timezone.timedelta(1) start_date = (today - timezone.timedelta(29)) 要求 30 天内每一天的 puege=url 的操作数,这个查询语句怎么写啊
1
chengxiao 2018-05-16 09:29:33 +08:00
没看懂后面说的什么意思....
target = Target.objects.filter( trigger_time__range=[datetime.datetime.now().date(), (datetime.datetime.now().date() - datetime.timedelta(days=30))]) |