| Server IP : 142.11.234.102 / Your IP : 216.73.216.24 Web Server : Apache System : Linux dal-shared-66.hostwindsdns.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : krnuyqrm ( 1183) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/xray/adviser/ |
Upload File : |
# -*- coding: utf-8 -*-
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2022 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
"""
This module contains a helper for Smart Advice own progress of applying the advice
"""
from dataclasses import dataclass
@dataclass
class SmartAdviceProgress:
"""Storage for progress stages"""
total_stages: int = 0
completed_stages: int = 0
def __gt__(self, other):
return self.completed_stages > other.completed_stages or self.total_stages > other.total_stages