-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why two different filenames for fit files? #63
Comments
Good point. The code to unzip was added in commit e12a7a5 almost 6 years ago, way before my first contribution. Basically |
My "two" cents.
The second option is currently supported[1]. However, to be consistent across all supported files, it is true that it would be safer to use
[1] Until we forget about this workaround ;)
In that case, I would suggest adding the suffix |
Hello.
This is not really an issue. It Is more a doubt I'm having. But I don't know where to ask for this other than here.
When
args.format=original
, the name used to check if the fit file was already existing is created and stored into a variable like this:fit_filename = os.path.join(directory, prefix + 'activity_' + activity_id + append_desc + '.fit')
But when the file is physically written into the disk, a new name is created for the fit file, like this:
new_name = os.path.join(directory, prefix + 'activity_' + name_base + append_desc + name_ext)
My doubt is that
name_base
andactivity_id
are not necessary the same thing. Actually, you had to recently add a workaround because in 2020 Garmin added '_ACTIVITY' to the name in the ZIP.Why not use
activity_id
when writing the file into the disk? Is there any particular reason that I'm missing?Thank you. Regards.
The text was updated successfully, but these errors were encountered: