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

Added the get_data_or_default interface. #64

Merged
merged 1 commit into from
May 14, 2024

Conversation

wa5i
Copy link
Collaborator

@wa5i wa5i commented May 11, 2024

Added the get_data_or_default interface which retrieves a parameter from the request, or defaults to a predefined value if retrieval fails. This is distinct from the get_data interface which only fetches the parameter's value from the request.

@wa5i wa5i requested a review from InfoHunter May 11, 2024 15:35
1. Added the get_data_or_default interface which retrieves a parameter from
   the request, or defaults to a predefined value if retrieval fails. This
   is distinct from the get_data interface which only fetches the parameter's
   value from the request.
2. Added the get_data_or_next interface which retrieves the data of the
   first field from the request; if it does not exist, it proceeds to
   fetch the data of the next field.
@InfoHunter InfoHunter merged commit dcafc90 into Tongsuo-Project:main May 14, 2024
6 checks passed
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