Skip to content

Commit

Permalink
🐛 fix regression in variable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Feb 27, 2024
1 parent 001bba5 commit 35e1788
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions db/model/Variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,16 @@ export async function writeVariableCSV(
): Promise<void> {
// get variables as dataframe
const variablesDF = (
await knex.raw(
await readSQLasDF(
`-- sql
SELECT
id as variableId,
name as variableName,
columnOrder
FROM ?? v
WHERE id IN (?)`,
[VariablesTableName, variableIds]
[VariablesTableName, variableIds],
knex
)
).withColumn(pl.col("variableId").cast(pl.Int32))

Expand Down

0 comments on commit 35e1788

Please sign in to comment.