Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zamuzakki committed Aug 2, 2023
1 parent 94727e7 commit c123b2c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions django_project/core/models/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@


def default_api_config():
"""
Default value for Preference's api_config.
"""
return {'default_page_size': 50, 'max_page_size': 50}


def default_metadata_xml_config():
"""
Default value for Preference's metadata_xml_config.
"""
return {
'ContactName': 'GeoRepo',
'ContactOrg': 'Unicef',
Expand All @@ -22,10 +28,16 @@ def default_metadata_xml_config():


def default_public_groups():
"""
Default value for Preference's public_group.
"""
return ['UNICEF']


def default_geometry_checker_params():
"""
Default value for Preference's geometry_checker_params.
"""
return {
'tolerance': 1e-4,
'overlaps_threshold': 0.01,
Expand Down

0 comments on commit c123b2c

Please sign in to comment.