fix : minor issues fixed.

pull/63/head
sadrasabouri 2021-10-22 13:08:34 +03:30
rodzic b701f6ed91
commit 936e2f95aa
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -131,7 +131,7 @@ def save_data_file(data1, data2, file_adr):
data['data2'] = data2
result = {"status": True, "message": DATA_SAVE_SUCCESS_MESSAGE}
try:
with open(file_adr, 'wb') as fp:
with open(file_adr, 'w') as fp:
json.dump(data, fp)
except Exception as e:
result["status"] = False

Wyświetl plik

@ -144,7 +144,7 @@ class GenerativeImage:
"""
return save_fig_file(figure=self.fig, file_adr=file_adr, depth=depth)
def save_data(self, file_adr):
def save_data(self, file_adr='data.json'):
"""
Save datas into a file.