mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-06 02:30:50 -08:00
Remove redundant timestamp parameter in Storage._set
- Previously used by PlaybackHistory.set_item - Since replaced by dedicated Storage._update method and associated wrappers
This commit is contained in:
parent
eee33347f3
commit
7472956964
2 changed files with 4 additions and 4 deletions
|
|
@ -40,8 +40,8 @@ class PlaybackHistory(Storage):
|
||||||
result = self._get(key, process=self._add_last_played)
|
result = self._get(key, process=self._add_last_played)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def set_item(self, video_id, play_data, timestamp=None):
|
def set_item(self, video_id, play_data):
|
||||||
self._set(video_id, play_data, timestamp)
|
self._set(video_id, play_data)
|
||||||
|
|
||||||
def del_item(self, video_id):
|
def del_item(self, video_id):
|
||||||
self._remove(video_id)
|
self._remove(video_id)
|
||||||
|
|
|
||||||
|
|
@ -466,8 +466,8 @@ class Storage(object):
|
||||||
self._execute(cursor, 'VACUUM')
|
self._execute(cursor, 'VACUUM')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _set(self, item_id, item, timestamp=None):
|
def _set(self, item_id, item):
|
||||||
values = self._encode(item_id, item, timestamp)
|
values = self._encode(item_id, item)
|
||||||
optimize_query = self._optimize_item_count(1, defer=True)
|
optimize_query = self._optimize_item_count(1, defer=True)
|
||||||
with self._lock as locked, self as (db, cursor), db:
|
with self._lock as locked, self as (db, cursor), db:
|
||||||
if locked:
|
if locked:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue