# 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.pagetype.jcloude_settings.jcloude_settings import JcloudeSettings


def execute():
	jingrow.reload_pagetype("Jcloude Settings")
	settings: JcloudeSettings = jingrow.get_single("Jcloude Settings")

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