|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/ssa/__pycache__/ |
�
$�&j�- � �| � d dl Z d dlZd dlZd dlZd dlmZmZ d dlmZmZm Z m
Z
mZmZm
Z
mZmZmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d Zed
z ZdZ e� � Z ej d� � Z G d
� de� � Z!d d�Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(d� Z)d� Z*d!d�Z+d� Z,d� Z-d� Z.ej/ defd�� � Z0dS )"� N)�datetime� timedelta)
�Column�Boolean�DateTime�Index�Integer�String�
create_engine�event�func�text)�declarative_base)� Inspector)�Session)�close_all_sessions)�
DatabaseErrorz/var/lve/ssa.dbz.old� �cleanup_old_datac �� � e Zd ZdZdZ eddd� � fZ eed�� � Z ee
d� � � Z ee
d� � � Z eed� � � Z
eed� � � Z eed� � � Z eed� � � Z eed� � � Z eed� � � Z eed� � � Z e ed�
� � ej � � d�� � Z e ed�
� � ej � � ej � � �� � Zd
S )�
RequestResultay
Describes processed request stored in database file.
E.g.
{
"timestamp": "1650008727",
"url": "http://mydomain.com/index.php",
"duration": 162077,
"hitting_limits": false,
"throttled_time": 0,
"io_throttled_time": 0,
"wordpress": true
}
Note: created_at, updated_at is saved in local TZ format
�
scrape_result�ix_scrape_result_domain_path�domain�pathT)�primary_keyF)�nullable)�timezone)�server_default�index)�onupdater N)�__name__�
__module__�__qualname__�__doc__�
__tablename__r �__table_args__r r �idr
r r � timestamp�durationr �is_slow_request�hitting_limits�throttled_time�io_throttled_time� wordpressr r
�now�
created_at�
updated_at� � �=/opt/cloudlinux/venv/lib64/python3.11/site-packages/ssa/db.pyr r ( sk � � � � � �� � $�M� ��,�h��?�?��N�
���T� *� *� *�B�
�V�F�U�
+�
+�
+�F��6�&�5�)�)�)�D���w��/�/�/�I��v�g��.�.�.�H��f�W�u�5�5�5�O��V�G�e�4�4�4�N��V�G�e�4�4�4�N���w��7�7�7����w��/�/�/�I� ����$�/�/�/����
�
�RV�W�W�W�J�����$�/�/�/�(�$�(�*�*�U]�UY�U]�U_�U_�`�`�`�J�J�Jr4 r �'