Logging configuration bug

pull/56/merge
morpheus65535 7 years ago
parent 238730eda1
commit 147e393896

@ -9,6 +9,22 @@ import os
bottle.TEMPLATE_PATH.insert(0,os.path.join(os.path.dirname(__file__), 'views/')) bottle.TEMPLATE_PATH.insert(0,os.path.join(os.path.dirname(__file__), 'views/'))
import sqlite3 import sqlite3
import json
import itertools
import operator
import requests
import pycountry
import pretty
import datetime
from PIL import Image
from io import BytesIO
from fdsend import send_file
import urllib
import math
from init_db import *
import update_db
import update_modules
import logging import logging
from logging.handlers import TimedRotatingFileHandler from logging.handlers import TimedRotatingFileHandler
@ -54,29 +70,6 @@ def configure_logging():
configure_logging() configure_logging()
import json
import itertools
import operator
import requests
import pycountry
import pretty
import datetime
from PIL import Image
from io import BytesIO
from fdsend import send_file
import urllib
import math
from init_db import *
import update_db
import update_modules
conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30)
c = conn.cursor()
c.execute("UPDATE table_settings_general SET configured = 0, updated = 0")
conn.commit()
c.close()
from get_languages import * from get_languages import *
from get_providers import * from get_providers import *
@ -90,6 +83,14 @@ from get_subtitle import *
from utils import * from utils import *
from scheduler import * from scheduler import *
# Reset restart required warning on start
conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'), timeout=30)
c = conn.cursor()
c.execute("UPDATE table_settings_general SET configured = 0, updated = 0")
conn.commit()
c.close()
@route('/') @route('/')
def redirect_root(): def redirect_root():
redirect (base_url) redirect (base_url)

Loading…
Cancel
Save