Skip to content

Commit

Permalink
fix: 修复数据统计按天统计数据不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertyyb committed Aug 17, 2022
1 parent f5a4443 commit 0bc1823
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Fire/Utils/Statistics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ class Statistics {
let sql = """
select date, count from
(select
date(createdAt, 'localtime') as date,
date(createdAt) as date,
sum(length(text)) as count
from data
where date(createdAt, 'localtime') >= "\(start)" and date(createdAt, 'localtime') <= "\(end)"
group by date(createdAt, 'localtime'))
where date(createdAt) >= "\(start)" and date(createdAt) <= "\(end)"
group by date(createdAt))
order by date desc;
PRAGMA key = 'testkey'
"""
Expand Down

0 comments on commit 0bc1823

Please sign in to comment.