fix off by one slice index
This commit is contained in:
		
							parent
							
								
									3ee2213eae
								
							
						
					
					
						commit
						2b83f94cf5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								feed.go
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								feed.go
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -183,7 +183,7 @@ func (this *Feed) CanUpdate() bool {
 | 
			
		|||
 | 
			
		||||
	// If skipDays or skipHours are set in the RSS feed, use these to see if
 | 
			
		||||
	// we can update.
 | 
			
		||||
	if len(this.Channels) == 0 && this.Type == "rss" {
 | 
			
		||||
	if len(this.Channels) == 1 && this.Type == "rss" {
 | 
			
		||||
		if this.EnforceCacheLimit && len(this.Channels[0].SkipDays) > 0 {
 | 
			
		||||
			for _, v := range this.Channels[0].SkipDays {
 | 
			
		||||
				if time.Weekday(v) == utc.Weekday() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue