Dennis G D
python infinite questions input saved to JSON
Made with Pythonnear infinite questions from API call
currently saving to json with correct indent!
still working on save to sqlite3
using python to write JSON to SQLite and getting error: Error: string indices must be integers insert_quiz_question(str(question_data))
then FLET(?!) for UI to make it pretty for users Flet has a PWA feature so theoretically users could download a fullblown app with a DB populated with data.
Recent comments (5)DennisGG4 months agoGreat news! I got the JSON to SQLite function to work
DennisGG4 months agoappend the data to the database
error
#Error: expected str, bytes or os.PathLike object, not list
add_json_to_db(data)
DennisGG4 months agoAfter far too much fussing, I got def append_category(data): to work
This allows users to add their own categories to the JSON output.
I have abstracted the functions away from the main.py to make it easier to debug.
DennisGG4 months agoYay. but the same code is not working for inputting new categories!
:(
DennisGG4 months agousing python to write JSON to SQLite and getting error: Error: string indices must be integers insert_quiz_question(str(question_data))
see import py function