-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: enlarge client body size of nginx
- Loading branch information
Showing
3 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,21 +160,21 @@ def update_highertaxon_api(row): | |
return pd.Series(row) | ||
|
||
|
||
# 前置準備 - 建立 Postgres 資料庫於本地端,目前設置port為 9432 | ||
# 前置準備 - 建立 Postgres 資料庫於本地端,目前設置port為 5432 | ||
|
||
# 1. 原本 TaiCOL 更新 | ||
# 2. 新 TaiCOL 加入 | ||
|
||
print("==== STEP 0 = Load Database Information ====") | ||
|
||
engine = db.create_engine('postgresql://postgres:[email protected]:9432/taibif') | ||
engine = db.create_engine('postgresql://postgres:[email protected]:5432/taibif') | ||
connection = engine.connect() | ||
df_taxon = pd.read_sql('SELECT * FROM data_taxon', connection) | ||
|
||
# ---- update Taxon information | ||
sql_delete_temp_taxon = "DELETE FROM temp_taxon" | ||
with engine.begin() as conn: | ||
conn.execute(sql_delete_temp_taxon) | ||
# sql_delete_temp_taxon = "DELETE FROM temp_taxon" | ||
# with engine.begin() as conn: | ||
# conn.execute(sql_delete_temp_taxon) | ||
|
||
df_taxon['mapping_error'] = '' | ||
df_taicolid_notnull = df_taxon[df_taxon.taicol_taxon_id.notnull()] | ||
|