diff --git a/scripts/expression_change_human_mrna/replace.py b/scripts/expression_change_human_mrna/replace.py index 73eae74..4f5cb20 100644 --- a/scripts/expression_change_human_mrna/replace.py +++ b/scripts/expression_change_human_mrna/replace.py @@ -159,7 +159,7 @@ def add_new_data_to_db(cursor: MySQLCursor, df: DataFrame, table: namedtuple): new_data_df = new_data_df.rename(columns={f"{table.dataset_column}{POSTFIX}": "name_en"}) if table.has_created_date: - new_data_df["updated_at"] = time.time() + new_data_df["created_at"] = time.time() count_rows = new_data_df.shape[0] column_names = ', '.join(new_data_df.columns) diff --git a/scripts/expression_change_human_mrna/upload.py b/scripts/expression_change_human_mrna/upload.py index 26e06c2..1751d72 100644 --- a/scripts/expression_change_human_mrna/upload.py +++ b/scripts/expression_change_human_mrna/upload.py @@ -118,7 +118,7 @@ def add_new_data_to_db(cursor: MySQLCursor, df: DataFrame, table: namedtuple): new_data_df = new_data_df.rename(columns={f"{table.dataset_column}{PREFIX}": "name_en"}) if table.has_created_date: - new_data_df["updated_at"] = time.time() + new_data_df["created_at"] = time.time() count_rows = new_data_df.shape[0] column_names = ', '.join(new_data_df.columns)