Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fact_pdf_report
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
fact-depend
fact_pdf_report
Commits
fe98b5dd
Commit
fe98b5dd
authored
Jul 08, 2020
by
lwilms
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change to accept less than 5 elements
parent
2471c1f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
template_engine.py
pdf_generator/tex_generation/template_engine.py
+1
-1
No files found.
pdf_generator/tex_generation/template_engine.py
View file @
fe98b5dd
...
...
@@ -84,7 +84,7 @@ def create_jinja_environment(templates_to_use='default'):
def
get_five_longest_entries
(
summary
,
top
=
5
):
sorted_summary
=
dict
()
if
len
(
summary
)
<
6
:
if
len
(
summary
)
<
top
+
1
:
return
summary
for
key
in
sorted
(
summary
,
key
=
lambda
key
:
len
(
summary
[
key
]),
reverse
=
True
):
sorted_summary
.
update
({
key
:
summary
[
key
]})
...
...
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