Skip to content

830 migrate item table to valid tofrom format - #832

Open
bogadisa wants to merge 16 commits into
mainfrom
830-migrate-item-table-to-valid-tofrom-format
Open

bogadisa wants to merge 16 commits into
mainfrom
830-migrate-item-table-to-valid-tofrom-format

Conversation

@bogadisa

@bogadisa bogadisa commented Oct 3, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@bogadisa
bogadisa requested a review from Ivareh October 3, 2026 13:16
@bogadisa bogadisa linked an issue Oct 3, 2026 that may be closed by this pull request
id=self.id, note=self.note, category=detector.get_category(self)
)

def __eq__(self, other: CacheItem | object) -> bool:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if used

incoming_data = list[tuple[int, int, float, int, bool]]()
for item in updated_availability:
item_id = incoming_to_database.get((item.gameItemId, item.leagueId))
if item_id is None:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this raise an error?

rolls = list[ItemModifierRoll]()
for roll in match.groups():
try:
if roll in ["reduced", "increased"]:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this multiply some number by -1 if it is reduced?

rolls.append(ItemModifierRoll(position=position, roll=extracted_roll))
position += 1
except:
print(roll, position, db_mod)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove before merging

pass
# Properties to receive on modifier creation
class ModifierCreate(ModifierBase):
rolls: list[ModifierRoll] = _pydantic.Field(default_factory=list)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need a default factory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate item table to valid to/from format

1 participant