Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
439dbf11
Commit
439dbf11
authored
Dec 27, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added category in detail()
parent
42024978
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
uitwww/src/news/views.py
uitwww/src/news/views.py
+4
-3
No files found.
uitwww/src/news/views.py
View file @
439dbf11
...
...
@@ -52,11 +52,12 @@ class News:
list_years
=
nw_cl
.
list_year_month
)
@
bp
.
route
(
"/<year>/<filename>"
)
def
detail
(
year
:
int
,
filename
:
str
):
@
bp
.
route
(
"/<year>/<category>/<filename>"
)
@
cache
.
enable
def
detail
(
year
:
str
,
category
:
str
,
filename
:
str
):
return
flask
.
render_template
(
"news/detail.html"
,
news
=
nw_cl
.
get_
data
(
f"
{
filename
}
.md"
,
year
)
news
=
nw_cl
.
get_
news
(
nr_file
=
filename
,
year
=
year
,
category
=
category
)
)
return
bp
...
...
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