This commit is contained in:
2025-02-02 12:17:33 +03:00
parent 0ad1d27327
commit e4f883d35a
6 changed files with 72 additions and 8 deletions

View File

@@ -15,8 +15,8 @@ pub fn new(reset bool) !Location {
}
// init_database downloads and imports the initial dataset
pub fn (mut l Location) download_and_import() ! {
l.db.download_and_import_data()!
pub fn (mut l Location) download_and_import(redownload bool) ! {
l.db.download_and_import_data(redownload)!
}
// Example usage: