From 11de82f91ae3a86de87e2d3fcd136ede088e51bb Mon Sep 17 00:00:00 2001 From: Domenico Iezzi Date: Tue, 10 Oct 2017 19:23:58 +0200 Subject: [PATCH] Added static method for getDeviceReadableNames Signed-off-by: Domenico Iezzi --- gpapi/config.py | 3 +-- gpapi/googleplay.py | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gpapi/config.py b/gpapi/config.py index a0a54c0..1f7c944 100644 --- a/gpapi/config.py +++ b/gpapi/config.py @@ -36,8 +36,7 @@ def getDevicesCodenames(): def getDevicesReadableNames(): - """Returns a list of tuples (codename, userReadableName) - for each device""" + """Returns codename and readable name for each device""" sections = getDevicesCodenames() output = [] for s in sections: diff --git a/gpapi/googleplay.py b/gpapi/googleplay.py index 175a9f7..9e5ba41 100644 --- a/gpapi/googleplay.py +++ b/gpapi/googleplay.py @@ -498,3 +498,7 @@ class GooglePlayAPI(object): @staticmethod def getDevicesCodenames(): return config.getDevicesCodenames() + + @staticmethod + def getDevicesReadableNames(): + return config.getDevicesReadableNames()