From 0e28af9eb1af6c6da705b4614ddd173c60576629 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Tue, 27 Apr 2021 19:34:36 +0200 Subject: [PATCH] app-json.py: parse emoji status scores into digits --- bin/app-json.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/app-json.py b/bin/app-json.py index 2d45daa..07c858f 100755 --- a/bin/app-json.py +++ b/bin/app-json.py @@ -179,6 +179,15 @@ def get_app_metadata(app_path): "rating": match.split(",")[1].strip(), "source": match.split(",")[-1].replace("*", "").strip(), } + elif title == "status": + value = { + "βΆπŸ’š": 1, + "β·πŸ’›": 2, + "❸🍎": 3, + "βΉπŸ’£": 4, + "?": 5, + "": 5 + }[match.split(":")[-1].replace("*", "").strip()] else: value = match.split(":")[-1].replace("*", "").strip()