want to get values as how the filter is use in this image as in django admin datefield in my view
return socket.on('helo', async function(data) {
socket._uuid = data.uuid;
let key = 'ws-ping:' + data.uuid;
const result = await cache.get(key);
if (result !== undefined) {
_pong();
return;
}
// ...
});
我想根据日,周,月和日获取模型中的所有值 年,但按天,周,月和年的提取功能给我相同的结果,但未按预期工作,我在做什么错 例如。获得今天的所有销售额 获得一周的所有销售额 获得该月的所有销售额 获得当年的所有销售额
尝试使用此功能不知道它是否与我想要的不同