mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
fix(firms): use public sweep_old_ids method
Match NWS adapter pattern for supervisor compatibility. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
22c50d3176
commit
95853200b2
1 changed files with 3 additions and 3 deletions
|
|
@ -149,7 +149,7 @@ class FIRMSAdapter(SourceAdapter):
|
|||
self._db.commit()
|
||||
|
||||
# Sweep old entries on startup (48h for FIRMS)
|
||||
self._sweep_old_ids()
|
||||
self.sweep_old_ids()
|
||||
|
||||
logger.info(
|
||||
"FIRMS adapter started",
|
||||
|
|
@ -200,7 +200,7 @@ class FIRMSAdapter(SourceAdapter):
|
|||
)
|
||||
self._db.commit()
|
||||
|
||||
def _sweep_old_ids(self) -> int:
|
||||
def sweep_old_ids(self) -> int:
|
||||
"""Remove published_ids older than 48 hours. Returns count deleted."""
|
||||
if not self._db:
|
||||
return 0
|
||||
|
|
@ -357,7 +357,7 @@ class FIRMSAdapter(SourceAdapter):
|
|||
return
|
||||
|
||||
# Sweep old dedup entries periodically
|
||||
self._sweep_old_ids()
|
||||
self.sweep_old_ids()
|
||||
|
||||
total_features = 0
|
||||
total_new = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue