Opened 16 years ago

Closed 16 years ago

#2540 closed defect (duplicate)

bug in rare circumstances

Reported by: Jirka Vejrazka Owned by: dagomez
Priority: normal Component: StractisticsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


Hi, I found quite interesting bug :-)

After installing the Stractistics plugin, I got the following error:

  File "build/bdist.linux-i686/egg/stractistics/", line 84, in process_request
  File "build/bdist.linux-i686/egg/stractistics/", line 116, in _repository_activity
  File "build/bdist.linux-i686/egg/stractistics/", line 228, in _authors_commit_data
KeyError: '07/53'

A bit of digging shown a bug in the _weeks_elapsed function which may skip last week of the year in some cases.

I made a quick fix by changing the timedelta to 1 day instead of 6. Probably not the best solution, but working :)

Attachments (0)

Change History (1)

comment:1 Changed 16 years ago by Jirka Vejrazka

Resolution: duplicate
Status: newclosed

I just noticed that someone has created a similar ticket - marking this one as a duplicate...

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain dagomez.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.