Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SiCKRAGE
sickrage
Commits
7c31b0c7
Commit
7c31b0c7
authored
Nov 10, 2018
by
echel0n
Browse files
Fixed issue for missing database indexes.
parent
3f20cdd0
Changes
4
Hide whitespace changes
Inline
Side-by-side
changelog.md
View file @
7c31b0c7
# Changelog
-
*
9ca02ed - 2018-11-10: Refactored misc errors to warnings.
-
*
62c1ce5 - 2018-11-10: Fixed issue for missing database indexes.
-
*
3f20cdd - 2018-11-10: Refactored misc errors to warnings.
-
*
4127ed3 - 2018-11-10: Refactored misc errors to warnings.
-
*
78c64b1 - 2018-11-10: Release v9.4.26
-
*
9e4dc5f - 2018-11-10: Fixed issue with file browser and clicking on files not properly choosing file and closing browser dialog.
...
...
sickrage/core/databases/__init__.py
View file @
7c31b0c7
...
...
@@ -234,6 +234,8 @@ class srDatabase(object):
except
Exception
as
e
:
if
index_name
in
self
.
db
.
indexes_names
:
self
.
db
.
destroy_index
(
self
.
db
.
indexes_names
[
index_name
])
self
.
db
.
add_index
(
self
.
_indexes
[
index_name
](
self
.
db
.
path
,
index_name
))
#self.db.reindex_index(index_name)
def
migrate
(
self
):
if
os
.
path
.
isfile
(
self
.
old_db_path
):
...
...
sickrage/core/webserver/views.py
View file @
7c31b0c7
...
...
@@ -3928,6 +3928,9 @@ class ConfigBackupRestore(Config):
return
finalResult
def
saveBackupRestore
(
self
,
**
kwargs
):
return
self
.
redirect
(
"/config/backuprestore/"
)
@
Route
(
'/config/search(/?.*)'
)
class
ConfigSearch
(
Config
):
...
...
sickrage/core/webserver/views/config/backup_restore.mako
View file @
7c31b0c7
<%inherit file="../layouts/config.mako"/>
<%def name='formaction()'><% return '
b
ackup
r
estore' %></%def>
<%def name='formaction()'><% return '
saveB
ackup
R
estore' %></%def>
<%block name="menus">
<li class="nav-item px-1"><a class="nav-link" data-toggle="tab" href="#backup">${_('Backup')}</a></li>
<li class="nav-item px-1"><a class="nav-link" data-toggle="tab" href="#restore">${_('Restore')}</a></li>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment