15 lines
325 B
Python
15 lines
325 B
Python
import database.tcontent.model
|
|
from database.database import get_session, create_tables
|
|
from database.tcontent.crud import drop_table, get_content_by_id
|
|
|
|
|
|
|
|
# create_tables()
|
|
|
|
# with get_session() as db:
|
|
# task = get_content_by_id(db, 1)
|
|
# print(task)
|
|
# print(task.id)
|
|
|
|
with get_session() as db:
|
|
drop_table(db) |