Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
hb-data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
子恒
hb-data
Commits
f02630b3
Commit
f02630b3
authored
Dec 22, 2021
by
子恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix]修复数据库连接问题
parent
3affc648
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
base_publish.py
sync/publish/base_publish.py
+1
-1
default.py
sync/publish/default.py
+1
-1
No files found.
sync/publish/base_publish.py
View file @
f02630b3
...
...
@@ -88,7 +88,7 @@ class BasePublish(object):
return
result
def
check_table_columns
(
self
):
source_table_column
=
self
.
get_table_columns
(
self
.
source_table
,
config
.
db_database
,
self
.
db
)
source_table_column
=
self
.
get_table_columns
(
self
.
source_table
,
config
.
rl_
db_database
,
self
.
db
)
dest_table_column
=
self
.
get_table_columns
(
self
.
dest_table
,
config
.
pub_db_database
,
self
.
pub_db
)
if
dest_table_column
.
empty
:
self
.
create_dest_tables
()
...
...
sync/publish/default.py
View file @
f02630b3
...
...
@@ -55,7 +55,7 @@ class DefaultPublish(BasePublish):
if
__name__
==
'__main__'
:
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'--source_table'
,
type
=
str
,
default
=
'rl_fof_fund_
multi_asset_config
'
)
parser
.
add_argument
(
'--source_table'
,
type
=
str
,
default
=
'rl_fof_fund_
base_info
'
)
parser
.
add_argument
(
'--dest_table'
,
type
=
str
,
default
=
None
)
parser
.
add_argument
(
'--rebuild'
,
type
=
bool
,
default
=
False
)
parser
.
add_argument
(
'--update'
,
type
=
bool
,
default
=
False
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment