Unknown items added to the DB get marked as removed #1
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: King_DuckZ/orotool#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When the items table is updated it gets compared to the freshly downloaded item list. Items not in the new list get marked as 'removed'. However the items table may contain null items, which get added by functions that update shop snapshots (they get added in order to satisfy foreign key constraints). These will always get marked as 'removed' on the next items update, because the newly downloaded table doesn't contain them.
The next time a shop tries to sell of on these items they get re-added to the items table.
This should not happen, null items can't become 'removed'.
null items get marked as removedto Unknown items added to the DB get marked as removed