mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-10-31 08:34:04 +00:00 
			
		
		
		
	Enhance debugging information for applied bounties and penalties
This commit is contained in:
		
							parent
							
								
									287a9d328c
								
							
						
					
					
						commit
						be5a378da5
					
				| @ -281,12 +281,14 @@ class AgePolicy(BasePolicy): | |||||||
| 
 | 
 | ||||||
|         days_old = self._date_now - self._dates[source_name][1] |         days_old = self._date_now - self._dates[source_name][1] | ||||||
|         min_days = self._min_days[urgency] |         min_days = self._min_days[urgency] | ||||||
|         for bounty in excuse.bounty.values(): |         for bounty in excuse.bounty: | ||||||
|             self.log('Applying bounty: %d days' % bounty) |             self.log('Applying bounty for %s granted by %s: %d days' % | ||||||
|             min_days -= bounty |                          (source_name, bounty, excuse.bounty[bounty])) | ||||||
|         for penalty in excuse.penalty.values(): |             min_days -= excuse.bounty[bounty] | ||||||
|             self.log('Applying penalty: %d days' % penalty) |         for penalty in excuse.penalty: | ||||||
|             min_days += penalty |             self.log('Applying penalty for %s given by %s: %d days' % | ||||||
|  |                          (source_name, penalty, excuse.penalty[penalty])) | ||||||
|  |             min_days += excuse.penalty[penalty] | ||||||
|         age_info['age-requirement'] = min_days |         age_info['age-requirement'] = min_days | ||||||
|         age_info['current-age'] = days_old |         age_info['current-age'] = days_old | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user