add self describe to assign_width_or_height function

This commit is contained in:
keyvanmj 2023-05-17 14:47:55 +03:30
parent 431673aae0
commit 567b960019

View file

@ -19,6 +19,9 @@ class HTMLTagParser(HTMLParser):
def assign_width_or_height(query_params):
"""
Getting width and height in url parameters and specifying them
"""
avatar_default_size = settings.AVATAR_DEFAULT_SIZE
width = query_params.get('width', avatar_default_size)