Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
imunify360
/
venv
/
lib64
/
python3.11
/
site-packages
/
defence360agent
/
migrations
/
__pycache__
[ HOME ]
Exec
Submit
File Name : 120_scheduled_scan.cpython-311.pyc
� ���h� � �� � d dl Z d dlmZmZ d dlZd dlmZ d dlm Z e j ddd�� � Z e j e � � Zej ej ej ej fZdd�Zd d �Zd d�ZdS )� N)�date� timedelta)� ConfigFile)�importerzimav.malwarelib.config�MalwareScanType)�module�name�defaultc � � t j � � t d�� � z }dd|j ii} t | �� � }|� |� � d S # t $ r t � d� � Y d S w xY w)N� )�days�MALWARE_SCAN_SCHEDULE�day_of_month)�pathz*Failed to set malware scan schedule config) r �todayr �dayr �dict_to_config� Exception�logger� exception)r �tomorrow�config�config_files �b/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrations/120_scheduled_scan.py�_update_configr s� � ��z�|�|�i�Q�/�/�/�/�H� ��H�L�" ��F�G� �d�+�+�+���"�"�6�*�*�*�*�*��� G� G� G����E�F�F�F�F�F�F�G���s �%A �$B �?B Fc �� � | j d }| � |t j dt j d� t � � � � g�� � �� � |rd S t � � d S )N� malware_scansFz type in {})�null�constraints)�type)�orm� change_fields�pw� CharField�Check�format�typesr )�migrator�database�fake�kwargs�MalwareScans r �migrater- '