Skip to content

Commit

Permalink
fix: Auto-name on save
Browse files Browse the repository at this point in the history
  • Loading branch information
Simatwa committed Mar 3, 2024
1 parent f382c5e commit 62d6ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smartBetika/betika.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def save_data(self, data: str, ads: bool = True):
from re import sub

data = sub("\n", "", data) + f" {self.ad_tag if ads else '' }"
with open(args.output, "a") as file:
with open(args.output or 'predictions.txt', "a") as file:
file.write("\n\n" + str(data))
except Exception as e:
logging.exception(e)
Expand Down

0 comments on commit 62d6ff3

Please sign in to comment.