From 567b960019193eb3a8f5f8dbffe1b9bf93f7da79 Mon Sep 17 00:00:00 2001 From: keyvanmj Date: Wed, 17 May 2023 14:47:55 +0330 Subject: [PATCH] add self describe to assign_width_or_height function --- avatar/api/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/avatar/api/utils.py b/avatar/api/utils.py index 17e7be1..62e978c 100644 --- a/avatar/api/utils.py +++ b/avatar/api/utils.py @@ -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)