Private GIT

Skip to content
Snippets Groups Projects
Commit cd91907d authored by labrys's avatar labrys
Browse files

PEP 8: Add and remove blank lines for consistency

parent dc4e7d0f
Branches
Tags
No related merge requests found
......@@ -18,6 +18,7 @@
from sickbeard import db
# Add new migrations at the bottom of the list; subclass the previous migration.
class InitialSchema(db.SchemaUpgrade):
def test(self):
......@@ -49,6 +50,7 @@ class AddSceneExceptions(InitialSchema):
self.connection.action(
"CREATE TABLE scene_exceptions (exception_id INTEGER PRIMARY KEY, indexer_id INTEGER KEY, show_name TEXT);")
class AddSceneNameCache(AddSceneExceptions):
def test(self):
return self.hasTable("scene_names")
......@@ -64,6 +66,7 @@ class AddNetworkTimezones(AddSceneNameCache):
def execute(self):
self.connection.action("CREATE TABLE network_timezones (network_name TEXT PRIMARY KEY, timezone TEXT);")
class AddLastSearch(AddNetworkTimezones):
def test(self):
return self.hasTable("lastSearch")
......@@ -71,6 +74,7 @@ class AddLastSearch(AddNetworkTimezones):
def execute(self):
self.connection.action("CREATE TABLE lastSearch (provider TEXT, time NUMERIC);")
class AddSceneExceptionsSeasons(AddLastSearch):
def test(self):
return self.hasColumn("scene_exceptions", "season")
......@@ -78,6 +82,7 @@ class AddSceneExceptionsSeasons(AddLastSearch):
def execute(self):
self.addColumn("scene_exceptions", "season", "NUMERIC", -1)
class AddSceneExceptionsCustom(AddSceneExceptionsSeasons):
def test(self):
return self.hasColumn("scene_exceptions", "custom")
......@@ -85,6 +90,7 @@ class AddSceneExceptionsCustom(AddSceneExceptionsSeasons):
def execute(self):
self.addColumn("scene_exceptions", "custom", "NUMERIC", 0)
class AddSceneExceptionsRefresh(AddSceneExceptionsCustom):
def test(self):
return self.hasTable("scene_exceptions_refresh")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment