diff --git a/cps/db.py b/cps/db.py index e4082a16..f25848c7 100755 --- a/cps/db.py +++ b/cps/db.py @@ -294,7 +294,7 @@ def setup_db(): return False dbpath = os.path.join(config.config_calibre_dir, "metadata.db") - engine = create_engine('sqlite:///{0}'.format(dbpath.encode('utf-8')), echo=False) + engine = create_engine('sqlite:///{0}'.format(dbpath.encode('utf-8')), echo=False, isolation_level="SERIALIZABLE") try: conn = engine.connect() diff --git a/cps/static/js/main.js b/cps/static/js/main.js index 0a184530..8b0b099f 100644 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -50,7 +50,7 @@ $(function() { }); $("#check_for_update").click(function() { var button_text = $("#check_for_update").html(); - $("#check_for_update").html('Checking...'); + $("#check_for_update").html('...'); $.ajax({ dataType: 'json', url: window.location.pathname+"/../../get_update_status", diff --git a/cps/templates/stats.html b/cps/templates/stats.html index 7ab72092..4b08afda 100644 --- a/cps/templates/stats.html +++ b/cps/templates/stats.html @@ -78,7 +78,14 @@