import os | |
SHOW_DUPLICATE_BUTTON = os.getenv('SHOW_DUPLICATE_BUTTON') == '1' | |
MAX_NUM_IMAGES = int(os.getenv('MAX_NUM_IMAGES', '3')) | |
DEFAULT_NUM_IMAGES = min(MAX_NUM_IMAGES, | |
int(os.getenv('DEFAULT_NUM_IMAGES', '1'))) | |
import os | |
SHOW_DUPLICATE_BUTTON = os.getenv('SHOW_DUPLICATE_BUTTON') == '1' | |
MAX_NUM_IMAGES = int(os.getenv('MAX_NUM_IMAGES', '3')) | |
DEFAULT_NUM_IMAGES = min(MAX_NUM_IMAGES, | |
int(os.getenv('DEFAULT_NUM_IMAGES', '1'))) | |