stempel scan UTC-naive utk scanned_at/first_seen_at (V62/B24) — pemilih BARU ⊖ tertahan 7 jam
This commit is contained in:
1 parent
d6b5927307
commit
56ff265d11
4 files changed
+22
-4
No files matched your search
+2
-1
@@ -154,7 +154,8 @@ def persist(rows):
|
||||
Lalu `db.record_first_seen` (V41): catat kemunculan pertama tiap owner
|
||||
(idempoten) utk membedakan pemilih BARU vs REVOTE di dashboard.
|
||||
"""
|
||||
scanned_at = datetime.now().isoformat(timespec='seconds')
|
||||
scanned_at = datetime.now(timezone.utc).replace(tzinfo=None).isoformat(
|
||||
timespec='seconds')
|
||||
db.replace_snapshot(rows, scanned_at)
|
||||
db.record_first_seen(rows, scanned_at)
|
||||
return scanned_at
|
||||
|
||||
Reference in new issue
Block a user