mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-06-28 09:24:56 -04:00
Use absolute path
This commit is contained in:
parent
5c52b5111e
commit
ded69fe6e7
13 changed files with 39 additions and 38 deletions
3
utils.py
3
utils.py
|
@ -1,9 +1,10 @@
|
|||
import os
|
||||
import sqlite3
|
||||
import time
|
||||
|
||||
def history_log(action, sonarrSeriesId, sonarrEpisodeId, description):
|
||||
# Open database connection
|
||||
db = sqlite3.connect('data/db/bazarr.db')
|
||||
db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
|
||||
c = db.cursor()
|
||||
|
||||
# Get Sonarr API URL from database config table
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue