Skip to content

Commit

Permalink
Default filename for SQLite file will be dev_XYZ where XYZ is the dev…
Browse files Browse the repository at this point in the history
…ice ID. User can also provide a filename, but using this default will prevent troubles when the device name is too long, contains weird characters, etc... This should solve issue #245
  • Loading branch information
ChristianTremblay committed Jan 29, 2021
1 parent 3a8fb80 commit 5dd6557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BAC0/sql/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def save(self, filename=None, resampling=None):
filename = filename.split(".")[0]
self.properties.db_name = filename
else:
self.properties.db_name = "{}".format(self.properties.name)
self.properties.db_name = "dev_{}".format(self.properties.device_id)

if resampling is None:
resampling = self.properties.save_resampling
Expand Down

0 comments on commit 5dd6557

Please sign in to comment.