Skip to content

Commit 55ba662

Browse files
committed
debug log existing keys
1 parent 850851e commit 55ba662

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

blitzortung/cli/imprt2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def create_strike_key(strike):
114114
Since strikes from URLs don't have IDs, we identify them by:
115115
- timestamp (nanosecond precision)
116116
- location (x, y coordinates)
117-
- amplitude
117+
- lateral error
118118
119119
Args:
120120
strike: Strike object
@@ -124,7 +124,7 @@ def create_strike_key(strike):
124124
"""
125125
return (
126126
strike.timestamp.value,
127-
round(strike.x, 4), # Round to 6 decimal places for location
127+
round(strike.x, 4), # Round to 4 decimal places for location
128128
round(strike.y, 4),
129129
strike.lateral_error
130130
)
@@ -196,6 +196,8 @@ def update_strikes(hours=1):
196196

197197
# Get existing strikes from database (identified by timestamp/location/amplitude)
198198
existing_strike_keys = get_existing_strike_keys(strike_db, time_interval)
199+
for existing_strike_key in existing_strike_keys:
200+
logger.debug("Existing strike key: %s", existing_strike_key)
199201

200202
# Fetch strikes from URL
201203
try:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = 'blitzortung'
3-
version = '1.11.23'
3+
version = '1.11.24'
44
description = 'blitzortung.org python modules'
55
authors = [
66
{name = "Andreas Würl",email = "andi@tryb.de"}

0 commit comments

Comments
 (0)