Skip to content

Commit

Permalink
Merge pull request #1988 from Fokko/fd-use-generated-at
Browse files Browse the repository at this point in the history
Use generated_at instead of datetime.utcnow()
  • Loading branch information
beckjake authored Dec 6, 2019
2 parents 1da96b5 + 3bc4834 commit 564cc22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/dbt/task/generate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import shutil
from datetime import datetime
from typing import Dict, List, Any
from typing import Dict, List, Any, Optional

from hologram import ValidationError

Expand Down Expand Up @@ -222,11 +222,14 @@ def run(self):
return results

def get_catalog_results(
self, nodes, generated_at, compile_results
self,
nodes: Dict[str, CatalogTable],
generated_at: datetime,
compile_results: Optional[Any]
) -> CatalogResults:
return CatalogResults(
nodes=nodes,
generated_at=datetime.utcnow(),
generated_at=generated_at,
_compile_results=compile_results,
)

Expand Down

0 comments on commit 564cc22

Please sign in to comment.