changeset 538:623eb9e5b7ec

merge
author Bernhard Reiter <bernhard@intevation.de>
date Thu, 09 Jan 2020 18:02:46 +0100
parents 7ae6bc1cd932 (current diff) a59622c06936 (diff)
children a12301b219fa
files
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/getan/template.py	Thu Jan 09 17:54:46 2020 +0100
+++ b/getan/template.py	Thu Jan 09 18:02:46 2020 +0100
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 #
 # (c) 2014 by Björn Ricks <bjoern.ricks@intevation.de>
+#     2017, 2018, 2020 Intevation GmbH
 #
 # This is Free Software licensed under the terms of GPLv3 or later.
 # For details see LICENSE coming with the source of 'getan'.
@@ -108,10 +109,11 @@
         project = backend.load_project(project)
         projects = [project]
 
-    if year is not None or week is not None:
+    if week is not None:
         u_week = "%02d" % unix_week(week, year)
-        for project in projects:
-            project.load_entries(year, u_week)
+
+    for project in projects:
+        project.load_entries(year, u_week)
 
     if not empty_projects:
         projects = [project for project in projects if project.entries]
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)