Tool black: auto-format Python code

This commit is contained in:
Odd Stråbø 2024-06-10 09:19:47 +00:00
commit 7763762212
54 changed files with 6545 additions and 4723 deletions

View file

@ -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)