Compare commits

...

2 Commits

Author SHA1 Message Date
5c018ab81b Merge pull request 'Fixed bug where the default unit was "m" instead of sending None' (#27) from default_unit_patch into master
Reviewed-on: #27
2026-08-31 20:53:48 +02:00
d63d03aead Fixed bug where the default unit was "m" instead of sending None
When the log_activity function receives a value of None for the unit parameter, it logs value without applying a conversion multiplier.
2026-08-31 20:48:51 +02:00

View File

@ -117,7 +117,7 @@ class FitnessCog(commands.Cog):
) )
return return
unit = parts[2] if len(parts) > 2 else "m" unit = parts[2] if len(parts) > 2 else None
timestamp = int(message.created_at.timestamp()) timestamp = int(message.created_at.timestamp())
username = message.author.name username = message.author.name