Edit File: plugin.cpython-311.pyc
� ���hPf � �( � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddlmZ ddl mZ ddlmZ ddlmZmZ ddlmZmZ dd lmZ dd lmZmZmZ ddlmZm Z m!Z!m"Z"m#Z#m$Z$m%Z% ddl&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/ dd l0m1Z1 ej2 e3� � Z4 ed� � Z5de6dej7 de6fd�Z8dej7 fd�Z9dej: fd�Z;d(de<fd�Z=d� Z>de?fd�Z@d� ZAdefd�ZBdedeCfd�ZDd� ZEd � ZFd!e<e fd"�ZGded#e6fd$�ZHd%� ZId&� ZJdedeKfd'�ZLdS ))u This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see <https://www.imunify360.com/legal/eula> � N)�defaultdict)�LooseVersion)�Path)� inactivity)�MalwareScanSchedule�MalwareScanScheduleInterval)�atomic_rewrite� check_run)�WPSite)�cli� telemetry�PLUGIN_VERSION_FILE)�build_command_for_user�calculate_next_scan_timestamp�$clear_get_cagefs_enabled_users_cache� get_last_scan�get_malware_history�prepare_scan_data�get_data_dir) �delete_site�get_outdated_sites�get_sites_for_user�get_sites_to_install�%get_sites_to_mark_as_manually_deleted�get_sites_to_uninstall�insert_installed_sites�mark_site_as_manually_deleted�update_site_version)�setup_site_authenticationzD/var/lib/cloudlinux-app-version-detector/components_versions.sqlite3�items� user_info�returnc �� ��� t |� � }d� |D � � }| D ]D���fd�|D � � }|r1t |t �� � }|| � �� � �E|S )Nc � � i | ]}|g ��S � r% )�.0�paths �J/opt/imunify360/venv/lib/python3.11/site-packages/imav/wordpress/plugin.py� <dictcomp>zsite_search.<locals>.<dictcomp>K s � � .� .� .�4�d�B� .� .� .� c �, �� g | ]} ��|� � �|��S r% r% )r&