wilenius / moodle-qbank_genai

Create and modify questions in the Moodle question bank with Generative AI. Code based on https://github.com/yedidiaklein/moodle-local_aiquestions
Other
2 stars 3 forks source link

Adhoc task fails with the latest commit #2

Open wilenius opened 3 weeks ago

wilenius commented 3 weeks ago

When running cron, I get this error:

Adhoc task failed: qbank_genai\task\questions,Error writing to database (Field 'course' doesn't have a default value INSERT INTO mdl_qbank_genai (numoftries,userid,timecreated,timemodified,tries,uniqid,gift,success) VALUES(?,?,?,?,?,?,?,?) [array ( 0 => '10', 1 => '2', 2 => 1725421833, 3 => 1725421833, 4 => 0, 5 => '266d7d9033099a1.87919864', 6 => '', 7 => '', )])

wilenius commented 3 weeks ago

This branch works, it uses the hidden param fix that we discussed yesterday: https://github.com/wilenius/moodle-qtype_genai/tree/heikki-fix