Skip to content

Commit b2f46e3

Browse files
authored
Fix: Make default_excel_sheet config variable work properly
Fixes Issue #209 The config key was reading from "DEFAULT_EXCEL_SHEET" instead of "ckanext.datapusher_plus.default_excel_sheet", making the configuration variable ineffective. Changed to use the proper namespaced config key so users can configure which Excel sheet to read.
1 parent e18eaef commit b2f46e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ckanext/datapusher_plus/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
tk.config.get("ckanext.datapusher_plus.max_content_length", "5000000")
6363
)
6464
CHUNK_SIZE = tk.asint(tk.config.get("ckanext.datapusher_plus.chunk_size", "1048576"))
65-
DEFAULT_EXCEL_SHEET = tk.asint(tk.config.get("DEFAULT_EXCEL_SHEET", 0))
65+
DEFAULT_EXCEL_SHEET = tk.asint(tk.config.get("ckanext.datapusher_plus.default_excel_sheet", 0))
6666
SORT_AND_DUPE_CHECK = tk.asbool(
6767
tk.config.get("ckanext.datapusher_plus.sort_and_dupe_check", True)
6868
)

0 commit comments

Comments
 (0)