Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvo committed Aug 21, 2024
1 parent 2b1762a commit 017af5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ingestify/infra/store/dataset/sqlalchemy/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
class TZDateTime(TypeDecorator):
impl = DateTime
LOCAL_TIMEZONE = datetime.datetime.utcnow().astimezone().tzinfo
cache_ok = True

def process_bind_param(self, value: datetime, dialect):
if value.tzinfo is None:
Expand Down
2 changes: 1 addition & 1 deletion ingestify/infra/store/dataset/sqlalchemy/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def apply_query_filter(query):
func.min(File.modified_at).label("first_modified_at"),
func.max(File.modified_at).label("last_modified_at"),
func.count().label("row_count"),
)
).join(Dataset, Dataset.dataset_id == File.dataset_id)
).first()
dataset_collection_metadata = DatasetCollectionMetadata(*metadata_result_row)

Expand Down
1 change: 1 addition & 0 deletions ingestify/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,5 @@ def run(self, func, iterable):
)

def join(self):
self.pool.close()
self.pool.join()

0 comments on commit 017af5f

Please sign in to comment.