mirror of
https://github.com/ada-dmitry/PyProg_ada.git
synced 2026-09-24 01:10:40 +00:00
reboot rep
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user