示例#1
0
文件: api2.py 项目: mvanbaak/Tautulli
    def backup_db(self):
        """ Create a manual backup of the `plexpy.db` file."""

        data = database.make_backup()
        self._api_result_type = 'success' if data else 'error'

        return data
示例#2
0
文件: api2.py 项目: hsojekok/plexpy
    def backup_db(self):
        """ Create a manual backup of the `plexpy.db` file."""

        data = database.make_backup()
        self._api_result_type = 'success' if data else 'error'

        return data
示例#3
0
文件: api2.py 项目: wnielson/plexpy
    def backupdb(self):
        """ Creates a manual backup of the plexpy.db file """

        data = database.make_backup()

        if data:
            self.result_type = 'success'
        else:
            self.result_type = 'failed'

        return data
示例#4
0
文件: api2.py 项目: CryptoGir/plexpy
    def backupdb(self):
        """ Creates a manual backup of the plexpy.db file """

        data = database.make_backup()

        if data:
            self.result_type = 'success'
        else:
            self.result_type = 'failed'

        return data
示例#5
0
文件: api2.py 项目: MikeDawg/plexpy
    def backup_db(self):
        """ Create a manual backup of the `plexpy.db` file. """

        data = database.make_backup()

        if data:
            self.result_type = "success"
        else:
            self.result_type = "failed"

        return data