Skip to content
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

Updated logbook function #43

Merged

Conversation

gardaholm
Copy link
Contributor

Updated version to allow basic stats functionality as written in lemeryfertitta/Climbdex#55

  • extended the logbook_entries to allow AUTH with username/password and user_id/token
  • added climb_uuid and climb_angle_uuid to the results
  • removed climb_uuid and climb_angle_uuid from the csv export to keep the structure as it was before making the changes board,angle,climb_name,date,logged_grade,displayed_grade,difficulty,tries,is_mirror,sessions_count,tries_total,is_repeat,is_ascent,comment

updated logbook_entries function to fetch climb-uuid, updated the csv_output to clean the climb_uuid before export.
changed auth type to allow username/password or user_id/token
properly named climb_uuid to climb_angle_uuid to be precise, because uuid + angle are already merged
Copy link
Owner

@lemeryfertitta lemeryfertitta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gardaholm! This looks much better. Just a few small changes requested and then I will package this up and deploy it in a new version.

src/boardlib/api/aurora.py Outdated Show resolved Hide resolved
src/boardlib/__main__.py Outdated Show resolved Hide resolved
src/boardlib/api/aurora.py Show resolved Hide resolved
gardaholm and others added 3 commits August 22, 2024 19:32
adding comment, as suggested

Co-authored-by: Luke Emery-Fertitta <[email protected]>
as suggested

Co-authored-by: Luke Emery-Fertitta <[email protected]>
Moved the fallback login information for username/passwored from logbook_entries()
to
handle_logbook_command()
@gardaholm
Copy link
Contributor Author

hope this is fine now :)

Copy link
Owner

@lemeryfertitta lemeryfertitta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for bearing with me on all of the iterations, nice and clean PR now. I'll get this pushed to PyPI with a new version number

@lemeryfertitta lemeryfertitta merged commit a4ef0e2 into lemeryfertitta:main Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants