PK
œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
| Dir : /opt/cloudlinux/venv/lib/python3.11/site-packages/ssa/__pycache__/ |
| Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 IP: 66.29.132.192 |
| Dir : //opt/cloudlinux/venv/lib/python3.11/site-packages/ssa/__pycache__/db.cpython-311.pyc |
�
4C�iJ � �B � d dl Z d dlZd dlZd dlmZmZ d dlmZmZmZm Z m
Z
mZmZm
Z
mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d Zed
z ZdZ e� � Z G d� d
e� � Zd� Zd� Zd� Z d� Z!d� Z"d� Z#d� Z$dd�Z%d� Z&d� Z'd� Z(ej) defd�� � Z*dS )� N)�datetime� timedelta) �Column�Boolean�DateTime�Integer�String�
create_engine�event�func�text)�declarative_base)� Inspector)�Session)�close_all_sessions)�
DatabaseErrorz/var/lve/ssa.dbz.old� c �� � e Zd ZdZdZ eed�� � Z eedd�� � Z eedd�� � Z
eed�� � Z eed�� � Z ee
d�� � Z ee
d�� � Z eed�� � Z eed�� � Z ee
d�� � Z e ed�� � ej � � d� � � Z e ed�� � ej � � ej � � �
� � ZdS )�
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_resultT)�primary_keyF)�index�nullable)r )�timezone)�server_defaultr )�onupdater N)�__name__�
__module__�__qualname__�__doc__�
__tablename__r r �idr �domain�path� 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 % sR � � � � � �� � $�M� ���T� *� *� *�B�
�V�F�$��
7�
7�
7�F��6�&��u�5�5�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�Jr0 r c �^ � t j � � t t �� � z
}t | � � 5 }|� t � � � t j |k � � � � � ddd� � n# 1 swxY w Y t | � � dS )zz
Removes outdated records from database, saving disk space.
Runs VACUUM after deletion to reclaim disk space.
)�daysN)r �todayr �RETENTION_TIME_DAYS�
session_scope�queryr �filterr- �delete�vacuum_database)�engine�
n_days_ago�sessions r1 �cleanup_old_datar>