Mercurial > getan > getan
comparison getan/project.py @ 469:050ffdec60d9
Fix the orientation problem
* Highlights the project what is open.
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Tue, 08 May 2018 13:29:45 +0200 |
parents | 59d9c5840273 |
children | 950bfe89ec3d |
comparison
equal
deleted
inserted
replaced
468:74e550aa3b6a | 469:050ffdec60d9 |
---|---|
28 self.desc = desc | 28 self.desc = desc |
29 self._entries = None | 29 self._entries = None |
30 self.total = total | 30 self.total = total |
31 self.start = None | 31 self.start = None |
32 self.stop = None | 32 self.stop = None |
33 self.open= None | |
33 | 34 |
34 def year(self): | 35 def year(self): |
35 total = 0 | 36 total = 0 |
36 now = datetime.now() | 37 now = datetime.now() |
37 for entry in self.entries: | 38 for entry in self.entries: |
94 self.project_id = project_id | 95 self.project_id = project_id |
95 self.start = start | 96 self.start = start |
96 self.end = end | 97 self.end = end |
97 self.desc = desc | 98 self.desc = desc |
98 self.workpackage = "-" | 99 self.workpackage = "-" |
100 self.open = None | |
99 | 101 |
100 # we add this attribute for use in jinja2 templates, | 102 # we add this attribute for use in jinja2 templates, |
101 # as filters like sort() or groupby() work only on attributes | 103 # as filters like sort() or groupby() work only on attributes |
102 # and sorting or grouping by day is common for reporting | 104 # and sorting or grouping by day is common for reporting |
103 self.startisoday = start.date().isoformat() | 105 self.startisoday = start.date().isoformat() |