Change get_argv to get_args in templates

pull/292/head
Halali 6 years ago
parent 4ac6690efc
commit f941ee5199

@ -50,7 +50,6 @@
</div>
% include('menu.tpl')
% from get_argv import config_dir
% import os
% from get_settings import get_general_settings

@ -20,7 +20,7 @@
</style>
</head>
<body>
% from get_argv import config_dir
% from get_args import args
% import os
% import sqlite3
@ -32,7 +32,7 @@
% monitored_only_query_string = ""
%end
% conn = sqlite3.connect(os.path.join(config_dir, 'db', 'bazarr.db'), timeout=30)
% conn = sqlite3.connect(os.path.join(args.config_dir, 'db', 'bazarr.db'), timeout=30)
% c = conn.cursor()
% wanted_series = c.execute("SELECT COUNT(*) FROM table_episodes WHERE missing_subtitles != '[]'" + monitored_only_query_string).fetchone()
% wanted_movies = c.execute("SELECT COUNT(*) FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string).fetchone()

@ -1364,9 +1364,8 @@
<script>
% from get_argv import no_update
% if no_update is True:
% from get_args import args
% if args.no_update:
$("#div_update").hide();
% end

@ -44,7 +44,7 @@
</style>
</head>
<body>
% from get_argv import config_dir
% from get_args import args
% import os
% import sqlite3
@ -56,7 +56,7 @@
% monitored_only_query_string = ""
%end
% conn = sqlite3.connect(os.path.join(config_dir, 'db', 'bazarr.db'), timeout=30)
% conn = sqlite3.connect(os.path.join(args.config_dir, 'db', 'bazarr.db'), timeout=30)
% c = conn.cursor()
% wanted_series = c.execute("SELECT COUNT(*) FROM table_episodes WHERE missing_subtitles != '[]'" + monitored_only_query_string).fetchone()
% wanted_movies = c.execute("SELECT COUNT(*) FROM table_movies WHERE missing_subtitles != '[]'" + monitored_only_query_string).fetchone()

Loading…
Cancel
Save