TelloViz / Card-Collection

Project for CPSC 362 Software Engineering
0 stars 3 forks source link

Discover Function Issue #149

Open CRam-irez opened 2 weeks ago

CRam-irez commented 2 weeks ago

Discover Function Bugs -When random searching, it picks a random set for the type selected *ISSUE is that not all types exist in all sets ex) Set: Dragon Majesty does not contain ANY metal types thus giving an error

[['types', '', 'metal']] Query: (types:"metal") AND (set.name:"Dragon Majesty") qml: Error in response: list index out of range

**Fairy and dragon seem to be the most missing from sets

FIX: if nothing exists in current random select, re-run randomize. We could implement a check to make sure the type exists within a set and then use a recursive function to call the randomize function again. Screenshot from 2024-11-11 18-37-19 Screenshot from 2024-11-11 18-22-57