Commit eed859c0 authored by 赵杰's avatar 赵杰

Merge remote-tracking branch 'origin/dev' into dev

parents 4770717b 46c2c770
...@@ -9,4 +9,5 @@ ...@@ -9,4 +9,5 @@
from app.api.app import app from app.api.app import app
if __name__ == '__main__': if __name__ == '__main__':
app.run('127.0.0.1', port=8000) app.run('127.0.0.1', port=8000, debug=True)
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
from flask import Flask from flask import Flask
from flask_restful import Api from flask_restful import Api
from app.router.version1 import add_route
from app.api.engine import work_dir
app = Flask(__name__) app = Flask(__name__, template_folder=work_dir+'/app/templates')
api = Api(app) api = Api(app)
add_route(api)
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
# @Software : PyCharm # @Software : PyCharm
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
from flask_restful import Resource, reqparse from flask_restful import Resource, reqparse
from flask import request from flask import request, render_template
from flask import make_response
class OrderHandlers(Resource): class OrderHandlers(Resource):
...@@ -19,10 +20,17 @@ class OrderHandlers(Resource): ...@@ -19,10 +20,17 @@ class OrderHandlers(Resource):
def get(self): def get(self):
""".""" """."""
self.parser.add_argument('product_id',type=str,required=True,help='商品ID不能为空') # self.parser.add_argument('product_id',type=str,required=True,help='商品ID不能为空')
args = self.parser.parse_args() # args = self.parser.parse_args()
print(args) STUDENT_LIST = [
return {'data': 'world'} {'name': 'pj', 'age': 38, 'gender': '中'},
{'name': 'lc', 'age': 73, 'gender': '男'},
{'name': 'fy', 'age': 84, 'gender': '女'}
]
params = {'a': 'hello', 'b': 'world'}
resp = make_response(render_template('student.html', student=STUDENT_LIST, params=params))
resp.headers['Content-Type'] = 'text/html'
return resp
def post(self): def post(self):
""".""" """."""
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
# @Software : PyCharm # @Software : PyCharm
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
from app.api.app import api
from app.controller.order import * from app.controller.order import *
api.add_resource(OrderHandlers, '/tamp_course_order/order') def add_route(api):
"""注册路由"""
api.add_resource(OrderHandlers, '/tamp_course_order/order')
# -*- encoding: utf-8 -*-
# -----------------------------------------------------------------------------
# @File Name : __init__.py.py
# @Time : 2020/11/23 下午2:54
# @Author : X. Peng
# @Email : acepengxiong@163.com
# @Software : PyCharm
# -----------------------------------------------------------------------------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Old Boy EDU</title>
</head>
<body>
Welcome to Old Boy EDU
{{params.a}}{{params.b}}
<div>{{ student }}</div>
<table border="1xp">
{% for foo in student %}
<tr>
<td>{{ foo.name }}</td>
<td>{{ foo.get("age") }}</td>
<td>{{ foo["gender"] }}</td>
</tr>
{% endfor %}
</table>
</body>
</html>
\ No newline at end of file
...@@ -13,25 +13,47 @@ from matplotlib import ticker ...@@ -13,25 +13,47 @@ from matplotlib import ticker
from matplotlib.ticker import FuncFormatter from matplotlib.ticker import FuncFormatter
from matplotlib.font_manager import FontProperties from matplotlib.font_manager import FontProperties
# 中文字体初始化
plt.rcParams['font.sans-serif']=['Heiti TC']
def to_percent(temp, position): def to_percent(temp, position):
return '%1.0f' % temp + '%' return '%1.0f' % temp + '%'
def draw_stacked_column_chart(product_list, cumulative):
"""堆叠柱状图""" def draw_month_return_chart(xlabels, product_list, cumulative):
"""月度回报表现图"""
# plt.title('Scores by group and gender') # plt.title('Scores by group and gender')
# plt.ylabel('Scores') # plt.ylabel('Scores')
figsize = (20, 12)
# 标签文字大小
fontsize = 20
# 初始化 # 初始化
fig = plt.figure(figsize=(12, 8)) fig = plt.figure(figsize=figsize)
ax1 = fig.add_subplot() ax1 = fig.add_subplot()
ax2 = ax1.twiny() ax2 = ax1.twinx()
max_x_count = max([x['data'].size for x in product_list]) max_x_count = max([x['data'].size for x in product_list])
loc = np.arange(max_x_count) # the x locations for the groups loc = np.arange(max_x_count) # the x locations for the groups
width = 0.35 # the width of the bars: can also be len(x) sequence width = 0.35 # the width of the bars: can also be len(x) sequence
color_list = ['#222A77', '#6C71AA', '#E1BC95', '#102A77', '#6CB1AA', '#CCBC95'] color_list = ['#222A77', '#6C71AA', '#E1BC95', '#F9DBB8']
# 堆叠柱状图 # 坐标轴
ax1.tick_params(labelsize=fontsize)
ax2.tick_params(labelsize=fontsize)
# 坐标轴颜色
ax2.tick_params(axis='y', colors='#C6A774')
ax1.set_xticks(loc)
ax1.set_xticklabels(xlabels)
ax1.yaxis.set_major_formatter(FuncFormatter(to_percent))
ax2.yaxis.set_major_formatter(FuncFormatter(to_percent))
temp_rate = np.zeros(max_x_count)
for i in range(len(product_list)):
temp_rate += product_list[i]['data']
max_rate = np.max(np.hstack((temp_rate, cumulative['data'])))
ax2.set_ylim(0, max_rate + 15)
# 柱状图
prod_legend = [] prod_legend = []
for i in range(len(product_list)): for i in range(len(product_list)):
ax = None ax = None
...@@ -41,35 +63,180 @@ def draw_stacked_column_chart(product_list, cumulative): ...@@ -41,35 +63,180 @@ def draw_stacked_column_chart(product_list, cumulative):
else: else:
for j in range(i): for j in range(i):
bottom = bottom + product_list[j]['data'] bottom = bottom + product_list[j]['data']
ax = ax1.bar(loc, product_list[i]['data'], width, bottom=bottom, color=color_list[i], alpha=0.8) if i < len(color_list):
ax = ax1.bar(loc, product_list[i]['data'], width, bottom=bottom, color=color_list[i], alpha=0.8)
else:
ax = ax1.bar(loc, product_list[i]['data'], width, bottom=bottom, alpha=0.8)
prod_legend.append(ax[0]) prod_legend.append(ax[0])
ax1.legend(prod_legend, [prod['name'] for prod in product_list], loc='upper left', fontsize=fontsize)
# 画折线图
ax2.plot(loc, cumulative['data'], color='#C6A774', marker='', linewidth=3, label=cumulative['name'])
ax2.legend(loc='upper center', fontsize=fontsize)
plt.show()
def draw_contribution_chart(xlabels, product_list, cumulative):
"""贡献分解图"""
# plt.title('Scores by group and gender')
# plt.ylabel('Scores')
figsize = (20, 12)
# 标签文字大小
fontsize = 22
# 初始化
fig = plt.figure(figsize=figsize)
ax1 = fig.add_subplot()
ax2 = ax1.twiny()
max_x_count = max([x['data'].size for x in product_list])
loc = np.arange(max_x_count) # the x locations for the groups
width = 0.35 # the width of the bars: can also be len(x) sequence
color_list = ['#222A77', '#6C71AA', '#E1BC95', '#F9DBB8']
# 坐标轴 # 坐标轴
ax1.tick_params(labelsize=fontsize)
ax1.set_xticks(loc) ax1.set_xticks(loc)
ax1.set_xticklabels(('G1', 'G2', 'G3', 'G4', 'G5')) ax1.set_xticklabels(xlabels)
plt.gca().yaxis.set_major_formatter(FuncFormatter(to_percent)) ax1.yaxis.set_major_formatter(FuncFormatter(to_percent))
ax1.legend(prod_legend, [prod['name'] for prod in product_list], bbox_to_anchor=(0.7, -0.1), ncol=4)
# 画折线图
# 最大收益
temp_rate = np.zeros(max_x_count) temp_rate = np.zeros(max_x_count)
for i in range(len(product_list)): for i in range(len(product_list)):
temp_rate += product_list[i]['data'] temp_rate += product_list[i]['data']
max_rate = np.max(np.hstack((temp_rate, cumulative['data']))) max_rate = np.max(np.hstack((temp_rate, cumulative['data'])))
ax2.set_xticks([]) ax2.set_xticks([])
ax2.set_ylim(0, max_rate + 10) ax2.set_ylim(0, max_rate + 10)
# 堆叠柱状图
prod_legend = []
for i in range(len(product_list)):
ax = None
bottom = np.zeros(max_x_count)
if i == 0:
ax = ax1.bar(loc, product_list[i]['data'], width, color=color_list[i], alpha=0.8)
else:
for j in range(i):
bottom = bottom + product_list[j]['data']
if i < len(color_list):
ax = ax1.bar(loc, product_list[i]['data'], width, bottom=bottom, color=color_list[i], alpha=0.8)
else:
ax = ax1.bar(loc, product_list[i]['data'], width, bottom=bottom, alpha=0.8)
prod_legend.append(ax[0])
ax1.legend(prod_legend, [prod['name'] for prod in product_list], bbox_to_anchor=(0.8, -0.1), ncol=4, fontsize=fontsize)
# 画折线图
ax2.plot(loc, cumulative['data'], color='#C6A774', marker='', linewidth=3, label=cumulative['name']) ax2.plot(loc, cumulative['data'], color='#C6A774', marker='', linewidth=3, label=cumulative['name'])
ax2.legend(loc='upper left') ax2.legend(loc='upper left', fontsize=fontsize)
plt.show()
def draw_comment_chart(xlabels, source_prod, target_prod):
"""个基点评图"""
figsize = (20, 12)
# 标签文字大小
fontsize = 22
# 初始化
fig = plt.figure(figsize=figsize)
ax1 = fig.add_subplot()
ax2 = ax1.twiny()
# ax = plt.gca() # gca:get current axis得到当前轴
# ax.spines['bottom'].set_position(('data', 0)) # data表示通过值来设置x轴的位置,将x轴绑定在y=0的位置
product_list = [source_prod, target_prod]
max_x_count = max([x['data'].size for x in product_list])
loc = np.arange(max_x_count) # the x locations for the groups
# 坐标轴
ax1.tick_params(labelsize=fontsize)
ax2.tick_params(labelsize=fontsize)
ax1.set_xticks(loc)
ax1.set_xticklabels(xlabels)
ax1.yaxis.set_major_formatter(FuncFormatter(to_percent))
max_rate = np.max(np.hstack((source_prod['data'], target_prod['data'])))
ax2.set_xticks([])
# 个基折线图
ax1.plot(loc, source_prod['data'], color='#C6A774', marker='', linewidth=3, label=source_prod['name'])
ax1.legend(loc='upper left', fontsize=fontsize)
# 指数折线图
ax2.plot(loc, target_prod['data'], color='black', marker='', linewidth=3, label=target_prod['name'])
ax2.legend(loc='upper center', fontsize=fontsize)
plt.show()
def draw_combination_chart(xlabels, new_combination, origin_combination, index):
"""组合对比图"""
figsize = (20, 12)
# 标签文字大小
fontsize = 22
# 初始化
fig = plt.figure(figsize=figsize)
ax1 = fig.add_subplot()
ax2 = ax1.twiny()
ax3 = ax1.twiny()
# ax = plt.gca() # gca:get current axis得到当前轴
# ax.spines['bottom'].set_position(('data', 0)) # data表示通过值来设置x轴的位置,将x轴绑定在y=0的位置
product_list = [origin_combination, new_combination, index]
max_x_count = max([x['data'].size for x in product_list])
loc = np.arange(max_x_count) # the x locations for the groups
# 坐标轴
ax1.tick_params(labelsize=fontsize)
ax2.tick_params(labelsize=fontsize)
ax3.tick_params(labelsize=fontsize)
ax1.set_xticks(loc)
ax1.set_xticklabels(xlabels)
ax1.yaxis.set_major_formatter(FuncFormatter(to_percent))
ax2.set_xticks([])
ax3.set_xticks([])
# 新组合折线图
ax1.plot(loc, new_combination['data'], color='#C6A774', marker='', linewidth=3, label=origin_combination['name'])
ax1.legend(loc='upper left', fontsize=fontsize)
# 原组合折线图
ax2.plot(loc, origin_combination['data'], color='#222A77', marker='', linewidth=3, label=new_combination['name'])
ax2.legend(loc='upper center', fontsize=fontsize)
# 指数折线图
ax3.plot(loc, index['data'], color='black', marker='', linewidth=3, label=index['name'])
ax3.legend(loc='upper right', fontsize=fontsize)
plt.show() plt.show()
def draw_correlation_chart():
"""相关性分析图"""
pass
if __name__ == '__main__': if __name__ == '__main__':
product1 = {'name': 'product1', 'data': np.array([10, 20, 30, 40, 50])} # xlabels = ('2020-1', '2020-2', '2020-3', '2020-4', '2020-5', '2020-6', '2020-7', '2020-8', '2020-9', '2020-10', '2020-11', '2020-12')
product2 = {'name': 'product2', 'data': np.array([20, 20, 20, 20, 20])} # product = {'name': '月度回报率', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
product3 = {'name': 'product3', 'data': np.array([20, 20, 20, 20, 20])} # contrast = {'name': '同比上涨', 'data': np.array([10, 50, 120, 100, 36, 0, 50, 120, 100, 36, 23, 98])}
product4 = {'name': 'product4', 'data': np.array([20, 20, 20, 20, 20])} # draw_month_return_chart(xlabels, [product], contrast)
product5 = {'name': 'product5', 'data': np.array([20, 20, 20, 20, 20])}
product6 = {'name': 'product6', 'data': np.array([20, 20, 20, 20, 20])} # xlabels = ('2020-1', '2020-2', '2020-3', '2020-4', '2020-5', '2020-6', '2020-7', '2020-8', '2020-9', '2020-10', '2020-11', '2020-12')
product_list = [product1, product2, product3, product4, product5, product6] # product1 = {'name': '塞亚成长1号', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
cumulative = {'name': 'totalincome', 'data': np.array([10, 50, 120, 100, 36])} # product2 = {'name': '塞亚成长2号', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
draw_stacked_column_chart(product_list, cumulative) # product3 = {'name': '塞亚成长3号', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
# product4 = {'name': '塞亚成长4号', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
# product5 = {'name': '塞亚成长5号', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
# product6 = {'name': '塞亚成长6号', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
# product7 = {'name': '塞亚成长7号', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
# product8 = {'name': '塞亚成长8号', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
# product_list = [product1, product2, product3, product4, product5, product6, product7, product8]
# cumulative = {'name': '总收益', 'data': np.array([10, 50, 120, 100, 36, 0, 50, 120, 100, 36, 23, 98])}
# draw_contribution_chart(xlabels, product_list, cumulative)
# xlabels = ('2020-1', '2020-2', '2020-3', '2020-4', '2020-5', '2020-6', '2020-7', '2020-8', '2020-9', '2020-10', '2020-11', '2020-12')
# source_prod = {'name': '远澜银杏1号', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
# target_prod = {'name': '上证指数', 'data': np.array([-10, 10, 5, 55, 24, 10, 20, 8, 10, 31, 40, 32])}
# draw_comment_chart(xlabels, source_prod, target_prod)
xlabels = ('2020-1', '2020-2', '2020-3', '2020-4', '2020-5', '2020-6', '2020-7', '2020-8', '2020-9', '2020-10', '2020-11', '2020-12')
new_combination = {'name': '新组合', 'data': np.array([20, 30, 40, 50, 60, 20, 30, 40, 50, 60, 50, 60])}
origin_combination = {'name': '原组合', 'data': np.array([10, 20, 30, 40, 50, 10, 20, 30, 40, 50, 40, 50])}
index = {'name': '上证指数', 'data': np.array([-10, 10, 5, 55, 24, 10, 20, 8, 10, 31, 40, 32])}
draw_combination_chart(xlabels, new_combination, origin_combination, index)
...@@ -24,9 +24,9 @@ def html_to_pdf(): ...@@ -24,9 +24,9 @@ def html_to_pdf():
} }
url1 = 'http://www.qimontech.com' url1 = 'http://www.qimontech.com'
# url = 'http://baidu.com' # url = 'http://baidu.com'
# url2 = 'https://www.cnblogs.com/zzb-yp/p/11512616.html' url2 = 'https://manage.meerkat.top'
# pdfkit.from_url(url1, '/Users/pengxiong/Desktop/out5.pdf', options=options) pdfkit.from_url(url1, '/Users/pengxiong/Desktop/out5.pdf', options=options)
pdfkit.from_file('/Users/pengxiong/Desktop/monthReport.html', '/Users/pengxiong/Desktop/out5.pdf', options=options) # pdfkit.from_file('/Users/pengxiong/Desktop/monthReport.html', '/Users/pengxiong/Desktop/out5.pdf', options=options)
def merge_pdf(pdfFiles, target_file='/Users/pengxiong/Desktop/combine.pdf'): def merge_pdf(pdfFiles, target_file='/Users/pengxiong/Desktop/combine.pdf'):
"""""" """"""
merger = PdfFileMerger() merger = PdfFileMerger()
......
...@@ -160,3 +160,180 @@ CREATE TABLE order_info ( ...@@ -160,3 +160,180 @@ CREATE TABLE order_info (
2020-11-18 16:29:19 Wed sqlalchemy.engine.base.Engine INFO {} 2020-11-18 16:29:19 Wed sqlalchemy.engine.base.Engine INFO {}
2020-11-18 16:29:19 Wed sqlalchemy.engine.base.Engine INFO COMMIT 2020-11-18 16:29:19 Wed sqlalchemy.engine.base.Engine INFO COMMIT
2020-11-23 15:39:28 Mon werkzeug INFO * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
2020-11-23 15:39:32 Mon app.api.app ERROR Exception on /tamp_course_order/order [GET]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask_restful/__init__.py", line 480, in wrapper
resp = resource(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask_restful/__init__.py", line 595, in dispatch_request
resp = meth(*args, **kwargs)
File "/Users/pengxiong/Desktop/fund_report/app/controller/order.py", line 31, in get
return render_template(work_dir+'/template/student.html', STUDENT_LIST)
TypeError: render_template() takes 1 positional argument but 2 were given
2020-11-23 15:39:32 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:39:32] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:40:22 Mon app.api.app ERROR Exception on /tamp_course_order/order [GET]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask_restful/__init__.py", line 480, in wrapper
resp = resource(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask_restful/__init__.py", line 595, in dispatch_request
resp = meth(*args, **kwargs)
File "/Users/pengxiong/Desktop/fund_report/app/controller/order.py", line 31, in get
return render_template(work_dir+'/template/student.html', STUDENT_LIST)
TypeError: render_template() takes 1 positional argument but 2 were given
2020-11-23 15:40:22 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:40:22] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:40:30 Mon werkzeug INFO * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
2020-11-23 15:40:57 Mon werkzeug INFO * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
2020-11-23 15:40:57 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:40:57 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:40:57 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:40:59 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:40:59] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:42:01 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:42:01 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:42:02 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:42:02 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:42:11 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:42:11] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:42:24 Mon werkzeug INFO * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
2020-11-23 15:42:24 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:42:24 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:42:24 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:42:27 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:42:27] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:43:41 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:43:42 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:43:42 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:43:42 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:43:50 Mon werkzeug INFO * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
2020-11-23 15:43:50 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:43:51 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:43:51 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:43:58 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:43:58] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:46:04 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:46:04 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:46:05 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:46:05 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:46:15 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:46:15 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:48:30 Mon werkzeug INFO * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
2020-11-23 15:48:30 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:48:30 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:48:30 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:48:34 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:48:34] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:50:58 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/api/app.py', reloading
2020-11-23 15:50:58 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:52:35 Mon werkzeug INFO * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)
2020-11-23 15:52:35 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:52:35 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:52:35 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:52:40 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:52:40] "GET /tamp_course_order/order HTTP/1.1" 200 -
2020-11-23 15:52:53 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:52:53] "GET /tamp_course_order/order HTTP/1.1" 200 -
2020-11-23 15:52:53 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:52:53] "GET /favicon.ico HTTP/1.1" 404 -
2020-11-23 15:53:04 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:53:04] "GET /tamp_course_order/order HTTP/1.1" 200 -
2020-11-23 15:53:32 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:53:32] "GET /tamp_course_order/order HTTP/1.1" 200 -
2020-11-23 15:53:35 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:53:35] "GET /tamp_course_order/order HTTP/1.1" 200 -
2020-11-23 15:53:44 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:53:44] "GET /tamp_course_order/order HTTP/1.1" 200 -
2020-11-23 15:54:51 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:54:51 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:54:52 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:54:52 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:56:06 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:06] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:56:06 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:06] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2020-11-23 15:56:06 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:06] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2020-11-23 15:56:06 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:06] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2020-11-23 15:56:06 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:06] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
2020-11-23 15:56:06 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:06] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:56:06 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:06] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:56:10 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:10] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:56:10 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:10] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2020-11-23 15:56:10 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:10] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2020-11-23 15:56:10 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:10] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2020-11-23 15:56:10 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:10] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
2020-11-23 15:56:10 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:56:10] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:56:25 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:56:25 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:56:26 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:56:26 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:57:49 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:57:49 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:57:49 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:57:49 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:57:52 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:52] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:57:52 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:52] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2020-11-23 15:57:52 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:52] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2020-11-23 15:57:52 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:52] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2020-11-23 15:57:52 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:52] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
2020-11-23 15:57:52 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:52] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:57:52 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:52] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:57:53 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:53] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:57:53 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:53] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2020-11-23 15:57:53 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:53] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2020-11-23 15:57:53 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:53] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2020-11-23 15:57:53 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:53] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
2020-11-23 15:57:54 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:57:54] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:58:07 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:58:07 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:58:07 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:58:07 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:58:08 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:08] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:58:08 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:08] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2020-11-23 15:58:08 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:08] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2020-11-23 15:58:08 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:08] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2020-11-23 15:58:09 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:09] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
2020-11-23 15:58:09 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:09] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:58:20 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:58:20 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:58:21 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:58:21 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:58:21 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:21] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:58:21 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:21] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2020-11-23 15:58:21 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:21] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2020-11-23 15:58:21 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:21] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2020-11-23 15:58:21 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:21] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
2020-11-23 15:58:22 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:22] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:58:22 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:22] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:58:23 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:23] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 15:58:23 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:23] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2020-11-23 15:58:23 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:23] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2020-11-23 15:58:23 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:23] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2020-11-23 15:58:23 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:23] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
2020-11-23 15:58:23 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:23] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:58:23 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:58:23] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 15:59:23 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 15:59:23 Mon werkzeug INFO * Restarting with stat
2020-11-23 15:59:24 Mon werkzeug WARNING * Debugger is active!
2020-11-23 15:59:24 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 15:59:29 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 15:59:29] "GET /tamp_course_order/order HTTP/1.1" 200 -
2020-11-23 16:02:12 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:02:12] "GET /tamp_course_order/order HTTP/1.1" 200 -
2020-11-23 16:04:02 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 16:04:02 Mon werkzeug INFO * Restarting with stat
2020-11-23 16:04:02 Mon werkzeug WARNING * Debugger is active!
2020-11-23 16:04:02 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 16:05:20 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:20] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 16:05:20 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:20] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2020-11-23 16:05:20 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:20] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2020-11-23 16:05:20 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:20] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2020-11-23 16:05:20 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:20] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
2020-11-23 16:05:20 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:20] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 16:05:21 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:21] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 16:05:26 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:26] "GET /tamp_course_order/order HTTP/1.1" 500 -
2020-11-23 16:05:26 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:26] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2020-11-23 16:05:26 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:26] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2020-11-23 16:05:26 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:26] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2020-11-23 16:05:26 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:26] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=ubuntu.ttf HTTP/1.1" 200 -
2020-11-23 16:05:26 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:26] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 16:05:26 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:05:26] "GET /tamp_course_order/order?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2020-11-23 16:06:12 Mon werkzeug INFO * Detected change in '/Users/pengxiong/Desktop/fund_report/app/controller/order.py', reloading
2020-11-23 16:06:12 Mon werkzeug INFO * Restarting with stat
2020-11-23 16:06:12 Mon werkzeug WARNING * Debugger is active!
2020-11-23 16:06:12 Mon werkzeug INFO * Debugger PIN: 191-123-093
2020-11-23 16:06:15 Mon werkzeug INFO 127.0.0.1 - - [23/Nov/2020 16:06:15] "GET /tamp_course_order/order HTTP/1.1" 200 -
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment