переход на postresql

This commit is contained in:
Vlad
2024-09-21 00:21:23 +03:00
parent 58602883d7
commit 83c2487ef2
9 changed files with 266 additions and 251 deletions
-6
View File
@@ -1,10 +1,4 @@
import requests
import json
from config import ADMIN_USERNAME, ADMIN_PASSWORD, GET_INBOUNDS_URL, DATABASE_PATH
import uuid
from auth import login_with_credentials
from datetime import datetime, timedelta
import aiosqlite
def add_client(session, client_id: str, email: str, tg_id: str, limit_ip: int, total_gb: int, expiry_time: int, enable: bool, flow: str):
url = 'https://solonet.pocomacho.ru:62553/solonet/panel/api/inbounds/addClient'