Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rchandnaeg committed Jun 4, 2024
1 parent f54ffd1 commit 577ad7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion querybook/server/datasources/query_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def download_statement_execution_result_xlsx(statement_execution_id):

reader = GenericReader(statement_execution.result_path)
reader.start()

# Read all rows and create a DataFrame
data = reader.read_csv(number_of_lines=None)
column_names = data[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import {
IStatementExecution,
IStatementResult,
} from 'const/queryExecution';
import { getStatementExecutionResultDownloadUrl, getStatementExecutionResultDownloadUrlXlsx } from 'lib/query-execution';
import {
getStatementExecutionResultDownloadUrl,
getStatementExecutionResultDownloadUrlXlsx,
} from 'lib/query-execution';
import {
getExporterAuthentication,
pollExporterTaskPromise,
Expand Down Expand Up @@ -108,7 +111,7 @@ export const ResultExportDropdown: React.FunctionComponent<IProps> = ({
} else {
toast.error('No valid url!');
}
}, [statementId])
}, [statementId]);

const onExportTSVClick = React.useCallback(async () => {
const rawResult = statementResult?.data || [];
Expand Down Expand Up @@ -191,7 +194,7 @@ export const ResultExportDropdown: React.FunctionComponent<IProps> = ({
{
name: 'Download Full Result (as XLSX)',
onClick: onDownloadXlsxClick,
icon: 'Sheet'
icon: 'Sheet',
},
{
name: (
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability
psycopg2==2.9.5

# Excel export
openpyxl==3.1.2
openpyxl==3.1.2

0 comments on commit 577ad7a

Please sign in to comment.