Skip to content

Commit f855fbe

Browse files
committed
cont
1 parent 162aa7a commit f855fbe

File tree

1 file changed

+12
-1
lines changed
  • diracx-db/src/diracx/db/sql/auth

1 file changed

+12
-1
lines changed

diracx-db/src/diracx/db/sql/auth/db.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,18 @@ async def post_create(cls, conn: AsyncConnection) -> None:
7272
print("CHRIS BOOM")
7373
print(query)
7474

75-
partition_names = (await conn.execute(query)).all()
75+
await conn.execute(query)
76+
77+
print("CHIS HOW DOES IT LOOK NOW?")
78+
query = text(
79+
"SELECT PARTITION_NAME FROM information_schema.partitions "
80+
"WHERE TABLE_NAME = :table_name AND PARTITION_NAME is not NULL"
81+
)
82+
partition_names = (
83+
await conn.execute(query, {"table_name": "RefreshTokens"})
84+
).all()
85+
print(partition_names)
86+
print("CHRIS GOOD JOB")
7687

7788
async def device_flow_validate_user_code(
7889
self, user_code: str, max_validity: int

0 commit comments

Comments
 (0)