Merge pull request #16 from east-and-west-magic/feature-unify-code
Browse files66 unmodified lines67686970717273747576777879808182838485868788899066 unmodified linesservice_start = beijing()print(f"<<<<<<<<<<<<<< service starts at {service_start} <<<<<<<<<<<<<<")if service == "download game":res = app_util.call_clouddisk(service, nlp_command, token)if res is None:outp = {"status": "Failure"}else:outp = {"status": "OK", "result": json.loads(res)}elif service == "upload game":res = app_util.call_clouddisk(service, nlp_command, token)if res is None:outp = {"status": "Failure"}else:outp = {"status": "OK", "result": res}elif service == "list games":res = app_util.call_clouddisk(service, nlp_command, token)if res is None:outp = {"status": "Failure"}else:outp = {"status": "OK", "result": json.loads(res)["result"]}else:assert "games" in service_listif service == "games":66 unmodified lines6768697071727374757677787966 unmodified linesservice_start = beijing()print(f"<<<<<<<<<<<<<< service starts at {service_start} <<<<<<<<<<<<<<")if service in ["download game", "upload game", "list games"]:res = app_util.call_clouddisk(service, nlp_command, token)res = json.loads(res)if res["result"] is None:outp = {"status": "Failure"}else:outp = {"status": "OK", "result": res["result"]}else:assert "games" in service_listif service == "games":
app.py+4-15