Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
alpha-mind
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
Dr.李
alpha-mind
Commits
6ce5596b
Commit
6ce5596b
authored
Nov 05, 2018
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8aa8c730
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
update_uqer_data_postgres.py
scripts/update_uqer_data_postgres.py
+4
-2
No files found.
scripts/update_uqer_data_postgres.py
View file @
6ce5596b
...
...
@@ -13,6 +13,7 @@ import uqer
import
sqlalchemy
import
numpy
as
np
import
pandas
as
pd
import
pendulum
from
airflow.operators.python_operator
import
PythonOperator
from
airflow.operators.email_operator
import
EmailOperator
from
airflow.sensors.external_task_sensor
import
ExternalTaskSensor
...
...
@@ -30,7 +31,8 @@ from alphamind.api import risk_styles
uqer
.
DataAPI
.
api_base
.
timeout
=
300
start_date
=
dt
.
datetime
(
2018
,
7
,
15
)
local_tz
=
pendulum
.
timezone
(
"Asia/Shanghai"
)
start_date
=
dt
.
datetime
(
2018
,
7
,
15
,
tzinfo
=
local_tz
)
dag_name
=
'update_uqer_data_postgres'
default_args
=
{
...
...
@@ -887,4 +889,4 @@ factor_master_task.set_upstream(uqer_task)
if
__name__
==
'__main__'
:
update_u
niverse
(
ds
=
'2018-05-09
'
)
update_u
qer_index_components
(
ds
=
'2018-07-16
'
)
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