remove unused db_restore
This commit is contained in:
parent
45f4ccfd93
commit
31ad9424f5
|
@ -5,7 +5,6 @@ Functionality:
|
|||
"""
|
||||
|
||||
from home.src.ta.users import UserConfig
|
||||
from home.tasks import run_restore_backup
|
||||
|
||||
|
||||
class PostData:
|
||||
|
@ -34,7 +33,6 @@ class PostData:
|
|||
"hide_watched": self._hide_watched,
|
||||
"show_subed_only": self._show_subed_only,
|
||||
"show_ignored_only": self._show_ignored_only,
|
||||
"db-restore": self._db_restore,
|
||||
}
|
||||
|
||||
return exec_map[self.to_exec]
|
||||
|
@ -83,10 +81,3 @@ class PostData:
|
|||
"show_ignored_only", bool(int(self.exec_val))
|
||||
)
|
||||
return {"success": True}
|
||||
|
||||
def _db_restore(self):
|
||||
"""restore es zip from settings page"""
|
||||
print("restoring index from backup zip")
|
||||
filename = self.exec_val
|
||||
run_restore_backup.delay(filename)
|
||||
return {"success": True}
|
||||
|
|
Loading…
Reference in New Issue