Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
py12306
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
python
py12306
Commits
c613b54d
Commit
c613b54d
authored
Jan 19, 2019
by
Jalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除子节点乘客检测,web 增加 cdn 显示
parent
0c817459
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
9 deletions
+27
-9
query.py
py12306/query/query.py
+2
-1
stat.py
py12306/web/handler/stat.py
+7
-3
app.7dba7f569524413218fde54c298188f4.css
...6/web/static/css/app.7dba7f569524413218fde54c298188f4.css
+15
-0
index.html
py12306/web/static/index.html
+2
-2
app.cdb00779aeb087dabd94.js
py12306/web/static/js/app.cdb00779aeb087dabd94.js
+1
-0
index.html
py12306/web/templates/index.html
+0
-3
No files found.
py12306/query/query.py
View file @
c613b54d
...
@@ -41,6 +41,7 @@ class Query:
...
@@ -41,6 +41,7 @@ class Query:
if
auto
:
if
auto
:
QueryLog
.
add_quick_log
(
QueryLog
.
MESSAGE_JOBS_DID_CHANGED
)
.
flush
()
QueryLog
.
add_quick_log
(
QueryLog
.
MESSAGE_JOBS_DID_CHANGED
)
.
flush
()
self
.
refresh_jobs
()
self
.
refresh_jobs
()
if
not
Config
()
.
is_slave
():
jobs_do
(
self
.
jobs
,
'check_passengers'
)
jobs_do
(
self
.
jobs
,
'check_passengers'
)
@
classmethod
@
classmethod
...
...
py12306/web/handler/stat.py
View file @
c613b54d
...
@@ -22,11 +22,15 @@ def dashboard():
...
@@ -22,11 +22,15 @@ def dashboard():
query_job_count
=
len
(
Query
()
.
jobs
)
query_job_count
=
len
(
Query
()
.
jobs
)
user_job_count
=
len
(
User
()
.
users
)
user_job_count
=
len
(
User
()
.
users
)
query_count
=
QueryLog
()
.
data
.
get
(
'query_count'
)
query_count
=
QueryLog
()
.
data
.
get
(
'query_count'
)
re
turn
jsonify
(
{
re
s
=
{
'query_job_count'
:
query_job_count
,
'query_job_count'
:
query_job_count
,
'user_job_count'
:
user_job_count
,
'user_job_count'
:
user_job_count
,
'query_count'
:
query_count
'query_count'
:
query_count
,
})
}
if
Config
()
.
CDN_ENABLED
:
from
py12306.helpers.cdn
import
Cdn
res
[
'cdn_count'
]
=
len
(
Cdn
()
.
available_items
)
return
jsonify
(
res
)
@
stat
.
route
(
'/stat/cluster'
,
methods
=
[
'GET'
])
@
stat
.
route
(
'/stat/cluster'
,
methods
=
[
'GET'
])
...
...
py12306/web/static/css/app.7dba7f569524413218fde54c298188f4.css
0 → 100644
View file @
c613b54d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
py12306/web/static/index.html
View file @
c613b54d
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><title>
py12306 购票助手
</title><link
href=
../../static/css/app.
35e2fbd94557d71d1e2bfa0d4bb44d13
.css
rel=
stylesheet
></head><body><script>
window
.
config
=
{
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><title>
py12306 购票助手
</title><link
href=
../../static/css/app.
7dba7f569524413218fde54c298188f4
.css
rel=
stylesheet
></head><body><script>
window
.
config
=
{
API_BASE_URL
:
'http://localhost:8008/'
,
API_BASE_URL
:
'http://localhost:8008/'
,
}
</script><div
id=
app
></div><script
type=
text/javascript
src=
../../static/js/manifest.82f431004cf9bb6ad2cb.js
></script><script
type=
text/javascript
src=
../../static/js/vendor.aebd1de04bf90e88d9c7.js
></script><script
type=
text/javascript
src=
../../static/js/app.7d7d65cccfbfa339beba.js
></script></body></html>
}
</script><div
id=
app
></div><script
type=
text/javascript
src=
../../static/js/manifest.82f431004cf9bb6ad2cb.js
></script><script
type=
text/javascript
src=
../../static/js/vendor.aebd1de04bf90e88d9c7.js
></script><script
type=
text/javascript
src=
../../static/js/app.cdb00779aeb087dabd94.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
py12306/web/static/js/app.cdb00779aeb087dabd94.js
0 → 100644
View file @
c613b54d
This diff is collapsed.
Click to expand it.
py12306/web/templates/index.html
deleted
100644 → 0
View file @
0c817459
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><title>
py12306 购票助手
</title><link
href=
../../static/css/app.dfb5ffed622907edd7c5f81709f2b782.css
rel=
stylesheet
></head><body><script>
window
.
config
=
{
API_BASE_URL
:
'http://localhost:8080/'
,
}
</script><div
id=
app
></div><script
type=
text/javascript
src=
../../static/js/manifest.82f431004cf9bb6ad2cb.js
></script><script
type=
text/javascript
src=
../../static/js/vendor.532ecf213e49d36e5e9e.js
></script><script
type=
text/javascript
src=
../../static/js/app.680b1bbd04444c6d9d3a.js
></script></body></html>
\ No newline at end of file
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