File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 11[project ]
22name = ' blitzortung'
3- version = ' 1.11.23 '
3+ version = ' 1.11.24 '
44description = ' blitzortung.org python modules'
55authors = [
66 {name = " Andreas Würl" ,email = " andi@tryb.de" }
You can’t perform that action at this time.
0 commit comments