kopia lustrzana https://github.com/sepandhaghighi/samila
fix : minor issues fixed.
rodzic
b701f6ed91
commit
936e2f95aa
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue