"{} downloaded successfully.".format(i))) elif a2["option"] in dcommand: apps = db.downloaded_app(a1["userid"], True, False) apps = dict(apps) for i in apps.keys(): q4[0]["choices"].append({"name": i}) q4[0]["message"] = "Select app you want to {}".format(a2["option"]) a4 = prompt(q4, style=style) if a4["install"] == []: puts(colored.red("You have to select at least one app.")) elif a2["option"] == "Feedback": for i in a4["install"]: puts(colored.green(i)) a8 = prompt(q8, style=style) db.feedback(a1["userid"], apps[i], a8["rating"], a8["comment"]) else: for i in a4["install"]: s = db.download(a1["userid"], apps[i], install=dcommand[a2["option"]]) puts( colored.green("{} {}ed successfully.".format( i, a2["option"]))) elif a2["option"] == "Wishlist": q3 = [{ "type": "list", "message": "Select option",