调整格式

This commit is contained in:
wzy-warehouse
2026-06-05 15:02:01 +08:00
parent 0b694abff0
commit c9cd96cca2
3 changed files with 17 additions and 15 deletions
+1
View File
@@ -54,3 +54,4 @@ htmlcov/
# Ignore dynaconf secret files
.secrets.*
/test/
+4 -4
View File
@@ -24,9 +24,9 @@ class RainfallRepository:
SELECT max(id) as max_id
FROM xian_meteorology
WHERE datetime BETWEEN (
to_char(timestamp %s - interval '12 hours', 'YYYYMMDDHH24MISS')
to_char(%s::timestamp - interval '12 hours', 'YYYYMMDDHH24MISS')
)::bigint AND (
to_char(timestamp %s, 'YYYYMMDDHH24MISS')
to_char(%s::timestamp, 'YYYYMMDDHH24MISS')
)::bigint
"""
@@ -53,9 +53,9 @@ class RainfallRepository:
SUM(rainfall_1h::numeric) AS rainfall
FROM xian_meteorology
WHERE datetime BETWEEN (
to_char(timestamp %s - interval '12 hours', 'YYYYMMDDHH24MISS')
to_char(%s::timestamp - interval '12 hours', 'YYYYMMDDHH24MISS')
)::bigint AND (
to_char(timestamp %s, 'YYYYMMDDHH24MISS')
to_char(%s::timestamp, 'YYYYMMDDHH24MISS')
)::bigint
GROUP BY lon, lat
"""
+2 -1
View File
@@ -4,4 +4,5 @@ redis == 7.4.0
numpy == 2.4.4
scipy == 1.17.1
matplotlib == 3.10.0
Pillow == 11.0.0
Pillow == 12.2.0
pyyaml == 6.0.2