Skip to content

Commit

Permalink
#158. Fix a wrong column used to set timestamp for new items
Browse files Browse the repository at this point in the history
  • Loading branch information
const8ine committed Sep 25, 2023
1 parent 9b5d1d7 commit 182a17a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/expression_change_human_mrna/replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion scripts/expression_change_human_mrna/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 182a17a

Please sign in to comment.