Update worms, insert data renamed to pairs.
This commit is contained in:
		
							parent
							
								
									2aa23ac2aa
								
							
						
					
					
						commit
						834c25882f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -67,7 +67,7 @@ class YCDLDBChannelMixin: | ||||||
|             'automark': automark, |             'automark': automark, | ||||||
|             'autorefresh': True, |             'autorefresh': True, | ||||||
|         } |         } | ||||||
|         self.insert(table='channels', data=data) |         self.insert(table='channels', pairs=data) | ||||||
| 
 | 
 | ||||||
|         channel = objects.Channel(self, data) |         channel = objects.Channel(self, data) | ||||||
| 
 | 
 | ||||||
|  | @ -394,7 +394,7 @@ class YCDLDBVideoMixin: | ||||||
|             self.update(table='videos', pairs=data, where_key='id') |             self.update(table='videos', pairs=data, where_key='id') | ||||||
|         else: |         else: | ||||||
|             log.loud('Inserting Video %s.', video) |             log.loud('Inserting Video %s.', video) | ||||||
|             self.insert(table='videos', data=data) |             self.insert(table='videos', pairs=data) | ||||||
| 
 | 
 | ||||||
|         # Override the cached copy with the new copy so that the cache contains |         # Override the cached copy with the new copy so that the cache contains | ||||||
|         # updated information (view counts etc.). |         # updated information (view counts etc.). | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue