-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
executable file
·23 lines (19 loc) · 877 Bytes
/
config.py
File metadata and controls
executable file
·23 lines (19 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
url = "https://open.feishu.cn/open-apis/bot/v2/hook/57dfbb83-ca88-42f1-81e5-89e75eb6b2eb"
secret_string = 'C2YJrXQC5uN4I3zW6VwTAc'
headers = {"Content-Type": "application/json"}
db_name = os.path.join(os.getcwd(), "notify.db")
log_name = os.path.join(os.getcwd(), "notify.log")
table_name = 'notify_list'
field_list = [
{'name': 'id', 'type': 'INTEGER PRIMARY KEY AUTOINCREMENT'},
{'name': 'type', 'type': 'VARCHAR(40) NOT NULL'},
{'name': 'name', 'type': 'VARCHAR(80)'},
{'name': 'symbol', 'type': 'VARCHAR(40) NOT NULL'},
{'name': 'compare', 'type': 'VARCHAR(20) NOT NULL'},
{'name': 'price', 'type': 'NUMERIC NOT NULL'},
{'name': 'num', 'type': 'INTEGER NOT NULL'},
]
table_fields = ['type', 'name', 'symbol', 'compare', 'price', 'num']
table_fields_all = ['id', 'type', 'name', 'symbol', 'compare', 'price', 'num']
sleep_time = 10