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
eb0b97d7
Commit
eb0b97d7
authored
Nov 02, 2022
by
纪超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成日志、配置文件、数据库工具模块
parent
80154e9c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
17 deletions
+5
-17
fund_info.py
dao/fund_info.py
+0
-0
base_fund_pool.py
dao/fund_pool/base_fund_pool.py
+0
-0
main.py
main.py
+4
-16
datebase.py
utils/datebase.py
+1
-1
No files found.
dao/fund_
pool/__init__
.py
→
dao/fund_
info
.py
View file @
eb0b97d7
File moved
dao/fund_pool/base_fund_pool.py
deleted
100644 → 0
View file @
80154e9c
main.py
View file @
eb0b97d7
from
utils
import
*
table
=
'robo_fund_info'
columns
=
'id, FT_Ticker, Lipper_ID, Name_CH, wind_ticker, Bloomberg_Ticker, FT_TW_RISK, RISK, ROBO, TEST, Asset, index_id'
@
read
def
getSyncFundInfos
():
return
f
"select {columns} from {table} where TEST = 1 or ROBO = 1 ;"
@
transaction
def
test
():
return
getSyncFundInfos
()
# from utils import *
import
importlib
as
im
im
.
__import__
(
'utils'
)
if
__name__
==
'__main__'
:
print
(
test
())
print
(
dir
())
utils/datebase.py
View file @
eb0b97d7
...
...
@@ -2,7 +2,7 @@ import functools
import
pymysql
import
threading
from
pymysql.cursors
import
DictCursor
from
.__env_config
import
config
as
default_config
from
utils
.__env_config
import
config
as
default_config
class
Database
:
...
...
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