调整格式
This commit is contained in:
@@ -54,3 +54,4 @@ htmlcov/
|
|||||||
|
|
||||||
# Ignore dynaconf secret files
|
# Ignore dynaconf secret files
|
||||||
.secrets.*
|
.secrets.*
|
||||||
|
/test/
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ class RainfallRepository:
|
|||||||
SELECT max(id) as max_id
|
SELECT max(id) as max_id
|
||||||
FROM xian_meteorology
|
FROM xian_meteorology
|
||||||
WHERE datetime BETWEEN (
|
WHERE datetime BETWEEN (
|
||||||
to_char(timestamp %s - interval '12 hours', 'YYYYMMDDHH24MISS')
|
to_char(%s::timestamp - interval '12 hours', 'YYYYMMDDHH24MISS')
|
||||||
)::bigint AND (
|
)::bigint AND (
|
||||||
to_char(timestamp %s, 'YYYYMMDDHH24MISS')
|
to_char(%s::timestamp, 'YYYYMMDDHH24MISS')
|
||||||
)::bigint
|
)::bigint
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -53,9 +53,9 @@ class RainfallRepository:
|
|||||||
SUM(rainfall_1h::numeric) AS rainfall
|
SUM(rainfall_1h::numeric) AS rainfall
|
||||||
FROM xian_meteorology
|
FROM xian_meteorology
|
||||||
WHERE datetime BETWEEN (
|
WHERE datetime BETWEEN (
|
||||||
to_char(timestamp %s - interval '12 hours', 'YYYYMMDDHH24MISS')
|
to_char(%s::timestamp - interval '12 hours', 'YYYYMMDDHH24MISS')
|
||||||
)::bigint AND (
|
)::bigint AND (
|
||||||
to_char(timestamp %s, 'YYYYMMDDHH24MISS')
|
to_char(%s::timestamp, 'YYYYMMDDHH24MISS')
|
||||||
)::bigint
|
)::bigint
|
||||||
GROUP BY lon, lat
|
GROUP BY lon, lat
|
||||||
"""
|
"""
|
||||||
|
|||||||
+2
-1
@@ -4,4 +4,5 @@ redis == 7.4.0
|
|||||||
numpy == 2.4.4
|
numpy == 2.4.4
|
||||||
scipy == 1.17.1
|
scipy == 1.17.1
|
||||||
matplotlib == 3.10.0
|
matplotlib == 3.10.0
|
||||||
Pillow == 11.0.0
|
Pillow == 12.2.0
|
||||||
|
pyyaml == 6.0.2
|
||||||
Reference in New Issue
Block a user