-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修改配置信息,支持使用YAML,放弃JSON存储,并支持自足添加航线 对文件结构进行优化 合并冲突
- Loading branch information
1 parent
a435c13
commit 40df588
Showing
18 changed files
with
109 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#询价界面 | ||
from .inquiry import work_inquiry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
印巴: | ||
印度: | ||
- 那瓦西瓦 | ||
- 清奈 | ||
巴基斯坦: | ||
- 卡拉奇 | ||
东亚: | ||
日本: | ||
- 东京 | ||
- 大阪 | ||
韩国: | ||
- 首尔 | ||
- 釜山 | ||
东南亚: | ||
泰国: | ||
- 曼谷 | ||
越南: | ||
- 河内 | ||
- 胡志明市 | ||
澳大利亚: | ||
澳大利亚: | ||
- 墨尔本 | ||
- 悉尼 | ||
北美: | ||
美国: | ||
- 洛杉矶 | ||
- 纽约 | ||
加拿大: | ||
- 温哥华 | ||
- 多伦多 | ||
南美: | ||
巴西: | ||
- 里约热内卢 | ||
巴拿马: | ||
- 厄瓜多尔 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#获取conf中的信息 | ||
from .comfig import port | ||
#发送询价邮件 | ||
from .email_api import inquiry_smtp | ||
#生成随机编号 | ||
from . import random_number | ||
#获取数据库 | ||
from .email_api import email_sql |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import yaml | ||
import os | ||
|
||
class port(): | ||
def __init__(self): | ||
path = os.getcwd() | ||
port_path = os.path.join(path, "conf","国家港口信息.yaml") | ||
with open(port_path, "r",encoding='utf-8') as f: | ||
self.config = yaml.safe_load(f) | ||
|
||
#获取航线 | ||
def get_line(self): | ||
return self.config.keys() | ||
|
||
#获取国家 | ||
def get_country(self,line): | ||
return self.config[line] | ||
|
||
#获取港口 | ||
def get_port(self,line,country): | ||
return self.config[line][country] |
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.