Describe the bug
If a user has set a default work type, then attempting to import works from AO3 to their Ourchive account fails with this error: 'WorkType' object has no attribute 'first'. Without a default work type, the import succeeds.
After the import job has run, the user's AO3 works will be on their Ourchive account
Delete one or more of the newly imported works
Set a default work type for the user
Set up a new import from AO3
No works will be imported, and in the logs will be an error like this:
etl.ao3.work_import ERROR 2024-04-24 09:47:40,408 work_import 92900 140557348901632 Process work data failed for 54847861 in job fe4d0c01-e070-4088-9c66-cb6363806e4a: 'WorkType' object has no attribute 'first'.
Expected behavior
The import from AO3 should work regardless of the user's default work type being set.
Desktop (please complete the following information):
OS: Linux Mint
Browser: Firefox
Version: 124
Hosting
Digital Ocean droplet running Ubuntu 22.04.
Describe the bug If a user has set a default work type, then attempting to import works from AO3 to their Ourchive account fails with this error:
'WorkType' object has no attribute 'first'
. Without a default work type, the import succeeds.To Reproduce
Expected behavior The import from AO3 should work regardless of the user's default work type being set.
Desktop (please complete the following information):
Hosting Digital Ocean droplet running Ubuntu 22.04.