Skip to content
Open navbar menu
Sign UpLog In
Profile icon

Dennis G D

@DennisGG
  • python infinite questions input saved to JSON

    Cover page
    Made with Python

    near 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)
    DennisGG
    DennisGG
    4 months ago

    Great news! I got the JSON to SQLite function to work

    DennisGG
    DennisGG
    4 months ago

    append the data to the database

    error

    #Error: expected str, bytes or os.PathLike object, not list

    add_json_to_db(data)

    DennisGG
    DennisGG
    4 months ago

    After 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.

    DennisGG
    DennisGG
    4 months ago

    Yay. but the same code is not working for inputting new categories!

    :(

    DennisGG
    DennisGG
    4 months ago

    using 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

Repls
Community
All Repls