Skip to content

Commit

Permalink
doc: add docstring comment to new function
Browse files Browse the repository at this point in the history
#810

Co-authored-by: Sascha Fendrich <[email protected]>
  • Loading branch information
mmerdes and Sascha Fendrich committed Aug 29, 2024
1 parent 04a929a commit 8b1f177
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ohsome_quality_api/utils/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@


def validate_attribute_topic_combination(attribute: AttributeEnum, topic: TopicEnum):
"""As attributes are only meaningful for a certain topic,
we need to check if the given combination is valid"""
valid_attributes_for_topic = get_attributes()[topic]
all_attributes = [attribute for attribute in valid_attributes_for_topic]

Expand Down

0 comments on commit 8b1f177

Please sign in to comment.