File: //opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/__pycache__/stats.cpython-311.pyc
�
=i�[Ϗ
�� � � d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlm Z d dl
mZ d dlm
Z
d dlmZ d dlmZmZmZmZmZmZ d d lmZ d d
lmZ d dlmZ e
d� � Zd
edee defd�Zd
edee defd�Z d
edee defd�Z!d
edee defd�Z" d&dee dedee fd�Z#d� Z$d'defd�Z%d� Z&d� Z'd � Z(d!e)d"e*d#ed$efd%�Z+dS )(� N)�List)�cpapi)�drop_privileges)�CLWPOS_WHMCS_STATS_FILE)�
setup_logging)�ALL_OPTIMIZATION_FEATURES)�get_allowed_modules�get_visible_modules�get_allowed_suites�PremiumSuite�
ALL_SUITES�AWPSuite)�get_server_wide_options)�
UserConfig)�CDNSuitePro�clwpos_statistics�user�checked_modules�returnc �& � d} t | � � 5 t | � � }|� |� � }ddd� � n# 1 swxY w Y nA# t $ r4}t � dt
|� � � � |cY d}~S d}~ww xY w|S )zW
Calculates total count of sites with at least one enabled
module per user
r Nz3Error while getting info from clwpos user config %s)r r �"get_enabled_sites_count_by_modules� Exception�_logger�warning�str)r r �count�uc�es �py/clwpos/stats.py�,get_sites_count_with_enabled_wpos_statisticsr "