예제 #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