Skip to content

Commit b6b28ba

Browse files
authored
fix(dagster): fix dynamic queries to work with enum (#4956)
1 parent 38b89d5 commit b6b28ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

warehouse/oso_dagster/utils/dynamic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def get_dynamic_replication(
6464
cur = postgres_conn.cursor()
6565
cur.execute(
6666
DYNAMIC_REPLICATION_DATA_QUERY,
67-
(org_name, resource_name),
67+
[org_name, resource_name],
6868
)
6969
result = cur.fetchone()
7070
if not result:
@@ -81,7 +81,7 @@ def get_dynamic_replications_partition_for_type(
8181
cur = postgres_conn.cursor()
8282
cur.execute(
8383
PARTITION_KEY_FOR_TYPE_QUERY,
84-
(replication_type,),
84+
[replication_type.value],
8585
)
8686
results = cur.fetchall()
8787

0 commit comments

Comments
 (0)