Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def update_job_metadata_and_tags(
tag_ids: List[int],
archive_stats: Dict[str, Any],
) -> None:
if tag_ids is not None:
if not len(tag_ids) == 0:
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
Comment thread
sitaowang1998 marked this conversation as resolved.
Outdated
update_tags(db_cursor, table_prefix, dataset, archive_stats["id"], tag_ids)
increment_compression_job_metadata(
db_cursor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def search_and_schedule_new_tasks(
)
db_conn.commit()

tag_ids = None
tag_ids = []
if clp_io_config.output.tags:
tags_table_name = get_tags_table_name(table_prefix, dataset)
db_cursor.executemany(
Expand Down
Loading