Opened 6 years ago

Closed 6 years ago

#2540 closed defect (duplicate)

bug in rare circumstances

Reported by: JirkaV 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 6 years ago by JirkaV

  • Resolution set to duplicate
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from dagomez. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.