feat: 10.10线上最新代码提交
This commit is contained in:
13
app.py
Normal file → Executable file
13
app.py
Normal file → Executable file
@@ -6034,13 +6034,12 @@ def get_event_counts():
|
||||
|
||||
# 查询事件数量
|
||||
query = """
|
||||
SELECT DATE (calendar_time) as date, COUNT (*) as count
|
||||
FROM future_events
|
||||
WHERE calendar_time BETWEEN :start_date \
|
||||
AND :end_date
|
||||
AND type = 'event'
|
||||
GROUP BY DATE (calendar_time) \
|
||||
"""
|
||||
SELECT DATE(calendar_time) as date, COUNT(*) as count
|
||||
FROM future_events
|
||||
WHERE calendar_time BETWEEN :start_date AND :end_date
|
||||
AND type = 'event'
|
||||
GROUP BY DATE(calendar_time)
|
||||
"""
|
||||
|
||||
result = db.session.execute(text(query), {
|
||||
'start_date': start_date,
|
||||
|
||||
Reference in New Issue
Block a user