Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
R
robo-dividend
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
wenwen.tang
robo-dividend
Commits
fca62352
Commit
fca62352
authored
Jan 31, 2026
by
wenwen.tang
😕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配新数据源
parent
1f48ab80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sync.py
basic/sync.py
+3
-2
No files found.
basic/sync.py
View file @
fca62352
...
@@ -345,9 +345,10 @@ class ExrateSync(DataSync):
...
@@ -345,9 +345,10 @@ class ExrateSync(DataSync):
last_one
=
re
.
get_last_one
(
ticker
=
ticker
)
last_one
=
re
.
get_last_one
(
ticker
=
ticker
)
start_date
=
next_workday
(
last_one
[
'date'
])
if
last_one
else
self
.
start_date
start_date
=
next_workday
(
last_one
[
'date'
])
if
last_one
else
self
.
start_date
response
=
self
.
exrate_ths
(
code
=
ticker
,
start_date
=
start_date
)
response
=
self
.
exrate_ths
(
code
=
ticker
,
start_date
=
start_date
)
response
=
response
[
'tables'
]
[
0
]
response
=
response
[
'tables'
]
if
response
.
get
(
'time'
)
is
None
or
len
(
response
[
'time'
])
==
0
:
if
len
(
response
)
==
0
or
response
[
0
]
.
get
(
'time'
)
is
None
or
len
(
response
[
0
]
[
'time'
])
==
0
:
continue
continue
response
=
response
[
'tables'
][
0
]
save_dates
=
[{
save_dates
=
[{
'ticker'
:
ticker
,
'ticker'
:
ticker
,
'date'
:
date
,
'date'
:
date
,
...
...
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