Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hunter-ht.cn
Overview
Overview
Details
Activity
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
刘莹莹
hunter-ht.cn
Commits
297a360c
Commit
297a360c
authored
May 07, 2020
by
liuyingying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cve css
parent
e6e99f75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
views.py
Hunter_ht/hunter/views.py
+2
-2
No files found.
Hunter_ht/hunter/views.py
View file @
297a360c
...
@@ -62,7 +62,7 @@ def index(request):
...
@@ -62,7 +62,7 @@ def index(request):
else
:
else
:
publication_year_list
[
year
]
=
[
pub
]
publication_year_list
[
year
]
=
[
pub
]
bug_list
=
Bugs
.
objects
.
order_by
(
'-
datetime
'
)
bug_list
=
Bugs
.
objects
.
order_by
(
'-
identifier
'
)
cve_year_list
=
{}
cve_year_list
=
{}
for
cve
in
bug_list
:
for
cve
in
bug_list
:
year
=
str
(
cve
.
datetime
)[
0
:
4
]
year
=
str
(
cve
.
datetime
)[
0
:
4
]
...
@@ -99,7 +99,7 @@ def index(request):
...
@@ -99,7 +99,7 @@ def index(request):
art
.
url
=
'/article/'
+
str
(
art
.
articleID
)
art
.
url
=
'/article/'
+
str
(
art
.
articleID
)
art
.
date
=
str
(
art
.
editDateTime
)[
5
:
10
]
art
.
date
=
str
(
art
.
editDateTime
)[
5
:
10
]
newest_cve
=
Bugs
.
objects
.
filter
(
datetime__gte
=
start
)
.
order_by
(
'-
identifier
'
)
newest_cve
=
Bugs
.
objects
.
filter
(
datetime__gte
=
start
)
.
order_by
(
'-
datetime
'
)
for
cve
in
newest_cve
:
for
cve
in
newest_cve
:
cve
.
title
=
cve
.
identifier
cve
.
title
=
cve
.
identifier
cve
.
author
=
cve
.
owner
cve
.
author
=
cve
.
owner
...
...
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