Modify

Opened 7 years ago

Closed 7 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

Description

Hi, I found quite interesting bug :-)

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

  ...
  File "build/bdist.linux-i686/egg/stractistics/stractistics.py", line 84, in process_request
  File "build/bdist.linux-i686/egg/stractistics/stractistics.py", line 116, in _repository_activity
  File "build/bdist.linux-i686/egg/stractistics/stractistics.py", 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 7 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

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.