Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
f8e488b1
Commit
f8e488b1
authored
Jan 15, 2020
by
gijs
Browse files
New version of the index
parent
b27465e0
Changes
1
Show whitespace changes
Inline
Side-by-side
generator/management/commands/generate.py
View file @
f8e488b1
...
...
@@ -236,8 +236,8 @@ def generate ():
output
(
os
.
path
.
join
(
outputdir
,
'activities.html'
),
'activities.html'
,
{
'events'
:
sorted
(
events
.
models
,
key
=
datesorter
,
reverse
=
True
)
})
output
(
os
.
path
.
join
(
outputdir
,
'index.html'
),
'index.html'
,
{
'events'
:
sorted
(
events
.
models
,
key
=
datesorter
,
reverse
=
True
)
})
output
(
os
.
path
.
join
(
outputdir
,
'index.
new.
html'
),
'index.new.html'
,
{
'events'
:
sorted
(
events
.
models
,
key
=
datesorter
,
reverse
=
True
)
})
output
(
os
.
path
.
join
(
outputdir
,
'index.
old.
html'
),
'index.html'
,
{
'events'
:
sorted
(
events
.
models
,
key
=
datesorter
,
reverse
=
True
)
})
output
(
os
.
path
.
join
(
outputdir
,
'index.html'
),
'index.new.html'
,
{
'events'
:
sorted
(
events
.
models
,
key
=
datesorter
,
reverse
=
True
)
})
with
open
(
os
.
path
.
join
(
outputdir
,
'debug.html'
),
'w'
,
encoding
=
'utf-8'
)
as
w
:
w
.
write
(
make_index
(
models
))
...
...
Write
Preview
Supports
Markdown
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