changeset 58:9826dcbf119f

rename total variable to total_proj because it refects to total time in a project
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 03 May 2011 14:31:11 +0200
parents 2f9093b41c5b
children 58bfac26a9ff
files contrib/zeiterfassung
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/zeiterfassung	Wed Apr 20 10:19:38 2011 +0200
+++ b/contrib/zeiterfassung	Tue May 03 14:31:11 2011 +0200
@@ -219,14 +219,14 @@
                         cur.execute(ENTRIES, {'project_id': project_id})
                     else:
                         cur.execute(ENTRIES_YEAR, {'project_id': project_id, 'year':proj_year})
-                    total = 0
+                    total_proj = 0
                     while True:
                         row = cur.fetchone()
                         if not row: break
                         d = date(*map(int, row[0].split('-'))) 
                         t = max(60, row[1])
                         c = row[2]
-                        total += t
+                        total_proj += t
                         workpackage = "----"
                         if c:
                             m = WORKPACKAGE.match(c)
@@ -241,7 +241,7 @@
                             user,
                             workpackage,
                             c)
-                    print "# total: %sh\n\n" % human_time(total)
+                    print "# total: %sh\n\n" % human_time(total_proj)
         finally:
             tolerantClose(cur)
             tolerantClose(con)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)