Add shared timestamp utility
This commit is contained in:
@@ -153,6 +153,7 @@ from api_server.snapshot_module_service import (
|
||||
module_sources_for_object as _snapshot_module_sources_for_object,
|
||||
snapshot_bsl_completion_items as _snapshot_bsl_completion_items,
|
||||
)
|
||||
from api_server.time_utils import current_timestamp as _current_timestamp
|
||||
from impact_engine import object_impact, routine_impact
|
||||
from incremental_indexer import rebuild_changed_file
|
||||
from integration_topology import IntegrationKind, build_integration_topology
|
||||
@@ -7225,12 +7226,6 @@ def _load_normalized_project(project_id: str) -> NormalizedProject | None:
|
||||
return normalized
|
||||
|
||||
|
||||
def _current_timestamp() -> str:
|
||||
from datetime import datetime, timezone
|
||||
|
||||
return datetime.now(timezone.utc).isoformat()
|
||||
|
||||
|
||||
def _import_quality_response(project_id: str) -> ImportQualityResponse:
|
||||
normalized = _load_normalized_project(project_id)
|
||||
summary = _normalized_project_summary(normalized) if normalized is not None else None
|
||||
|
||||
Reference in New Issue
Block a user