# Copyright (c) 2022, Jingrow Technologies Pvt. Ltd. and Contributors
# For license information, please see license.txt


import typing

import jingrow

if typing.TYPE_CHECKING:
	from jcloude.jcloude.doctype.jcloude_settings.jcloude_settings import PressSettings


def execute():
	jingrow.reload_doctype("Press Settings")
	settings: PressSettings = jingrow.get_single("Press Settings")

	if not settings.minimum_rebuild_memory:
		settings.minimum_rebuild_memory = 2
		settings.save()
