remove unused db_restore

This commit is contained in:
Simon 2023-11-01 14:10:45 +07:00
parent 45f4ccfd93
commit 31ad9424f5
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 0 additions and 9 deletions

View File

@ -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}