From b016ac1f696655344ecd68020b7c97c7ff18907c Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 25 Aug 2015 16:51:54 +0300 Subject: Fixed FMiP detection --- gsxws/products.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsxws/products.py b/gsxws/products.py index d1b5b01..b268457 100644 --- a/gsxws/products.py +++ b/gsxws/products.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- - """ https://gsxwsut.apple.com/apidocs/ut/html/WSAPIChangeLog.html?user=asp """ + import re import urllib @@ -179,7 +179,7 @@ class Product(object): """ Returns True if FMiP status is active, False otherwise """ - return self.fmip_status.startswith('Find My iPhone is active.') + return 'Find My iPhone is active' in self.fmip_status def is_unlocked(self, ad=None): """ -- cgit v1.2.3