mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-13 18:43:17 +00:00
Tool black: auto-format Python code
This commit is contained in:
parent
e4d8084c25
commit
7763762212
54 changed files with 6545 additions and 4723 deletions
|
|
@ -1,5 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import division, absolute_import, print_function, unicode_literals
|
||||
|
||||
#################################################################################################
|
||||
|
||||
from . import queries as QU
|
||||
|
|
@ -14,7 +15,7 @@ LOG = LazyLogger(__name__)
|
|||
##################################################################################################
|
||||
|
||||
|
||||
class JellyfinDatabase():
|
||||
class JellyfinDatabase:
|
||||
|
||||
def __init__(self, cursor):
|
||||
self.cursor = cursor
|
||||
|
|
@ -32,9 +33,7 @@ class JellyfinDatabase():
|
|||
self.cursor.execute(QU.update_reference, args)
|
||||
|
||||
def update_parent_id(self, *args):
|
||||
|
||||
''' Parent_id is the parent Kodi id.
|
||||
'''
|
||||
"""Parent_id is the parent Kodi id."""
|
||||
self.cursor.execute(QU.update_parent, args)
|
||||
|
||||
def get_item_id_by_parent_id(self, *args):
|
||||
|
|
@ -160,8 +159,8 @@ class JellyfinDatabase():
|
|||
return self.cursor.fetchone()
|
||||
|
||||
def add_version(self, *args):
|
||||
'''
|
||||
"""
|
||||
We only ever want one value here, so erase the existing contents first
|
||||
'''
|
||||
"""
|
||||
self.cursor.execute(QU.delete_version)
|
||||
self.cursor.execute(QU.add_version, args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue