[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[www] branch master updated: use a dict not list.
From: |
gnunet |
Subject: |
[www] branch master updated: use a dict not list. |
Date: |
Mon, 04 Nov 2019 23:07:54 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository www.
The following commit(s) were added to refs/heads/master by this push:
new 9527484 use a dict not list.
9527484 is described below
commit 952748467d1db65d4d21d3137532b5075882e112
Author: ng0 <address@hidden>
AuthorDate: Mon Nov 4 22:05:01 2019 +0000
use a dict not list.
---
template.py | 16 ++++++++--------
template/ev.html.j2 | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/template.py b/template.py
index 5cae5bd..08bf13d 100755
--- a/template.py
+++ b/template.py
@@ -193,14 +193,14 @@ def copy_static(locale, indict):
# TODO: Move the lists elsewhere?
-meetingnotes = [
- { "year": "2013", "date": "2013-12-27" },
- { "year": "2014", "date": "2014-12-28" },
- { "year": "2015", "date": "2015-12-29" },
- { "year": "2016", "date": "2016-12-28" },
- { "year": "2017", "date": "2017-12-27" },
- { "year": "2018", "date": "2018-12-27" },
-]
+meetingnotes = {
+ "2013": "2013-12-27",
+ "2014": "2014-12-28",
+ "2015": "2015-12-29",
+ "2016": "2016-12-28",
+ "2017": "2017-12-27",
+ "2018": "2018-12-27",
+}
# At this moment in time, constructing this list dynamically would be
# too much pointless code.
diff --git a/template/ev.html.j2 b/template/ev.html.j2
index ba138df..bddd2ee 100644
--- a/template/ev.html.j2
+++ b/template/ev.html.j2
@@ -70,9 +70,9 @@
<div class="col-md">
<h3>{{ _("Official Meeting Notes") }}</h3>
<ul>
- {% for item in meetingnotesdata %}
+ {% for year, date in meetingnotesdata.items() %}
<li>
- {{ item['year'] }}: (Protocol: <a
href="https://git.gnunet.org/gnunet-ev.git/tree/minutes/{{ item['date']
}}.txt">txt</a>)
+ {{ year|e }}: (Protocol: <a
href="https://git.gnunet.org/gnunet-ev.git/tree/minutes/{{ date|e
}}.txt">txt</a>)
</li>
{% endfor %}
</ul>
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [www] branch master updated: use a dict not list.,
gnunet <=