Example #1
0
    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
Example #2
0
    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
Example #3
0
    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
Example #4
0
    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
Example #5
0
    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