Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
沈秋雨
/
import_hk_songs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f49c0c2c
...
f49c0c2cd959d53eebb7afa1f30fa06429d967ee
authored
2026-07-09 15:59:27 +0800
by
沈秋雨
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(connections): 修复数据库连接时区设置问题
1 parent
dc82bc10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
etl_to_crawler/connections.py
etl_to_crawler/connections.py
View file @
f49c0c2
...
...
@@ -20,7 +20,9 @@ def get_hk_songs_conn() -> pymysql.Connection:
def
get_pg_conn
()
->
pg8000
.
Connection
:
return
pg8000
.
connect
(
**
CRAWLER_DB
)
conn
=
pg8000
.
connect
(
**
CRAWLER_DB
)
conn
.
run
(
"SET TimeZone = 'Asia/Shanghai'"
)
return
conn
def
get_oss_bucket
()
->
oss2
.
Bucket
:
...
...
Please
register
or
sign in
to post a comment