I’ve factored out updating the schema combobox from init_DB(), so that init_DB() can safely used repeatedly, esp. in on_btn_upload_clicked().
The return None statements in init_DB are changed to return None, None in order to have a uniform return type (2-element tuple) for all cases. Thus, the return value can be safely unpacked (avoiding cannot unpack non-iterable NoneType object errors) and connection success checked.
I hope the schema selections now finally works.
I also added a little information about table name laundering to README.md.
I’ve factored out updating the schema combobox from
init_DB()
, so thatinit_DB()
can safely used repeatedly, esp. inon_btn_upload_clicked()
.The
return None
statements ininit_DB
are changed toreturn None, None
in order to have a uniform return type (2-element tuple) for all cases. Thus, the return value can be safely unpacked (avoidingcannot unpack non-iterable NoneType object
errors) and connection success checked.I hope the schema selections now finally works.
I also added a little information about table name laundering to
README.md
.