Skip to content

Commit

Permalink
update comment on IMAGE_MIME_TYPES
Browse files Browse the repository at this point in the history
This is the latest commit on this file
  • Loading branch information
bfontaine committed Apr 12, 2024
1 parent a173bfa commit 4802995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magento/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

ROOT_CATEGORY_ID = 1

# Magento visibility options
# Magento's visibility options
# https://devdocs.magento.com/guides/v2.4/rest/tutorials/configurable-product/create-configurable-product.html
VISIBILITY_IN_CATALOG_AND_SEARCH = 4
VISIBILITY_IN_CATALOG = 2
Expand All @@ -29,7 +29,7 @@
DISABLED_PRODUCT = 2

# https://magento.stackexchange.com/a/244151/92968
# https://github.com/magento/magento2/blob/c22a9db4/lib/internal/Magento/Framework/Image/Adapter/Gd2.php#L30-L34
# https://github.com/magento/magento2/blob/ef6d9c80/lib/internal/Magento/Framework/Image/Adapter/Gd2.php#L30-L34
IMAGE_MIME_TYPES = {"image/gif", "image/jpeg", "image/png", "image/xbm", "image/wbmp"}

DATE_ISO_8601_FORMAT = "%Y-%m-%d %H:%M:%S"
Expand Down

0 comments on commit 4802995

Please sign in to comment.