zulip/zerver
Ganesh Pawar 830f1fa8c5 upload: Refactor and add tests for ensure_avatar_image in upload.py.
`ensure_basic_avatar_image` and `ensure_medium_avatar_image` are
essentially the same thing, except a size parameter.
So, refactor them into a single function.

This doesn't introduce any functional changes.
2021-04-29 21:18:13 -07:00
..
data_import models/realm: Add a model for storing realm playground information. 2021-04-07 08:20:53 +05:30
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib upload: Refactor and add tests for ensure_avatar_image in upload.py. 2021-04-29 21:18:13 -07:00
management mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
migrations upload: Refactor and add tests for ensure_avatar_image in upload.py. 2021-04-29 21:18:13 -07:00
openapi events: Add 'is_moderator' field to the page_params object sent to clients. 2021-04-29 15:18:49 -07:00
templatetags dependencies: Upgrade to webpack-bundle-tracker 1.0.0-alpha.1. 2021-04-06 09:31:35 -07:00
tests upload: Refactor and add tests for ensure_avatar_image in upload.py. 2021-04-29 21:18:13 -07:00
tornado middleware: Add client_version attribute to request. 2021-04-29 17:03:40 -07:00
views mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
webhooks mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
worker email: Open a single SMTP connection to send email batches. 2021-04-26 17:27:22 -07:00
__init__.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
apps.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
context_processors.py context_processors: Remove unnecessary get_client_name call. 2021-04-29 17:47:32 -07:00
decorator.py middleware: Simplify logic for parsing user-agent. 2021-04-29 17:47:41 -07:00
filters.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
forms.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
logging_handlers.py docs: Capitalize “Markdown” consistently. 2021-04-26 09:31:08 -07:00
middleware.py middleware: Simplify logic for parsing user-agent. 2021-04-29 17:47:41 -07:00
models.py mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
signals.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00