👍️[Update] Model : tauri -> python のデータ部分をbase64でencodeするように修正
This commit is contained in:
@@ -73,13 +73,5 @@ def splitList(lst:list, split_count:int, to_shuffle:bool=False):
|
||||
split_lists.append(sub_list)
|
||||
return split_lists
|
||||
|
||||
def encodeUtf8(data:str) -> dict:
|
||||
data = {i: byte for i, byte in enumerate(data.encode('UTF-8'))}
|
||||
return data
|
||||
|
||||
def decodeUtf8(data:dict) -> str:
|
||||
data = bytes(data.values()).decode("UTF-8")
|
||||
return data
|
||||
|
||||
def printLog(log:str, data:Any=None) -> None:
|
||||
print(json.dumps({"status":348, "log":log, "data":str(data)}), flush=True)
|
||||
Reference in New Issue
Block a user