Skip to content

Commit e45d5e8

Browse files
satomicCopilot
andauthored
Update src/cpuad-updater/main.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a62198b commit e45d5e8

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/cpuad-updater/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,6 @@ def write_to_es(self, index_name, data, update_condition=None):
12571257
last_updated_at = current_time()
12581258
data["last_updated_at"] = last_updated_at
12591259
# Add @timestamp for Grafana time-based filtering (ISO 8601 format)
1260-
from datetime import datetime
12611260
data["@timestamp"] = datetime.now().isoformat()
12621261
doc_id = data.get(self.primary_key)
12631262
logger.info(f"Writing data to Elasticsearch index: {index_name}")

0 commit comments

Comments
 (0)