From 834c25882f6e6250295def663fc66749fe8b4881 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 13 Aug 2022 07:25:29 -0700 Subject: [PATCH] Update worms, insert data renamed to pairs. --- ycdl/ycdldb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ycdl/ycdldb.py b/ycdl/ycdldb.py index aa873fa..bba33b7 100644 --- a/ycdl/ycdldb.py +++ b/ycdl/ycdldb.py @@ -67,7 +67,7 @@ class YCDLDBChannelMixin: 'automark': automark, 'autorefresh': True, } - self.insert(table='channels', data=data) + self.insert(table='channels', pairs=data) channel = objects.Channel(self, data) @@ -394,7 +394,7 @@ class YCDLDBVideoMixin: self.update(table='videos', pairs=data, where_key='id') else: 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 # updated information (view counts etc.).