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)
|
||||
return result
|
||||
|
||||
def set_item(self, video_id, play_data, timestamp=None):
|
||||
self._set(video_id, play_data, timestamp)
|
||||
def set_item(self, video_id, play_data):
|
||||
self._set(video_id, play_data)
|
||||
|
||||
def del_item(self, video_id):
|
||||
self._remove(video_id)
|
||||
|
|
|
|||
|
|
@ -466,8 +466,8 @@ class Storage(object):
|
|||
self._execute(cursor, 'VACUUM')
|
||||
return True
|
||||
|
||||
def _set(self, item_id, item, timestamp=None):
|
||||
values = self._encode(item_id, item, timestamp)
|
||||
def _set(self, item_id, item):
|
||||
values = self._encode(item_id, item)
|
||||
optimize_query = self._optimize_item_count(1, defer=True)
|
||||
with self._lock as locked, self as (db, cursor), db:
|
||||
if locked:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue