Changeset 1268
- Timestamp:
- 09/13/06 10:04:28 (2 years ago)
- Files:
-
- scrumburndownplugin/burndown/burndown_job.py (modified) (2 diffs)
- scrumburndownplugin/deploy.bat (modified) (1 diff)
- scrumburndownplugin/setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
scrumburndownplugin/burndown/burndown_job.py
r1122 r1268 48 48 sqlSelect = "SELECT est.value AS estimate, ts.value AS spent "\ 49 49 "FROM ticket t "\ 50 " LEFT OUTER JOIN ticket_custom est ON (t.id = est.ticket AND est.name = ' current_estimate') "\51 " LEFT OUTER JOIN ticket_custom ts ON (t.id = ts.ticket AND ts.name = 't ime_spent') "\50 " LEFT OUTER JOIN ticket_custom est ON (t.id = est.ticket AND est.name = 'estimatedhours') "\ 51 " LEFT OUTER JOIN ticket_custom ts ON (t.id = ts.ticket AND ts.name = 'totalhours') "\ 52 52 "WHERE t.component = '%s' AND t.milestone = '%s' " 53 #print sqlSelect % (comp[0], mile[0])54 53 cursor.execute(sqlSelect % (comp[0], mile[0])) 55 54 … … 65 64 spent = 0 66 65 67 hours += int(estimate) - int(spent)66 hours += float(estimate) - float(spent) 68 67 69 68 else: 70 69 print "no results for %s component in %s milestone" % (comp[0], mile[0]) 71 # print "last id was %s" % (db.get_last_id(cursor, 'burndown'))72 70 # Sometimes db.get_last_id(cursor, 'burndown') returns "None".. 73 71 print 'burndown: %s, %s, %s, %s, %i' % (db.get_last_id(cursor, 'burndown'), comp[0], mile[0], today, hours) scrumburndownplugin/deploy.bat
r870 r1268 1 copy c:\burndown-plugin\dist\TracBurndown-0 .1-py2.3.egg C:\Python23\Lib\site-packages1 copy c:\burndown-plugin\dist\TracBurndown-01.00.10-py2.3.egg C:\Python23\Lib\site-packages scrumburndownplugin/setup.py
r1126 r1268 2 2 3 3 PACKAGE = 'TracBurndown' 4 VERSION = '0 .2'4 VERSION = '01.00.10' 5 5 6 6 setup(name=PACKAGE, 7 description='Plugin to provide a dynamic burndown chart in Trac.', 8 keywords='trac plugin scrum burndown', 9 url='http://www.trac-hacks.org/wiki/ScrumBurndownPlugin', 7 10 version=VERSION, 8 11 packages=['burndown'],
