mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-09 08:17:42 +08:00
Change get_argv to get_args in templates
This commit is contained in:
parent
4ac6690efc
commit
f941ee5199
4 changed files with 6 additions and 8 deletions
|
@ -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…
Reference in a new issue