reboot rep

This commit is contained in:
ada-dmitry
2023-12-10 17:38:28 +03:00
parent 6644d5da53
commit a4d4108dad
80 changed files with 0 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import psycopg2
import wget
import config
connection = psycopg2.connect(host=config.hostname, dbname=config.databname, user=config.username, password=config.passw)
cursor = connection.cursor()
def sel(a):
s_query = f"""SELECT * FROM public.parser WHERE id = {a}"""
print(cursor.execute(s_query))
return cursor.fetchone()
print(sel(10))