802 add support for automatic foulborn unique tracking#803
802 add support for automatic foulborn unique tracking#803
Conversation
There was a problem hiding this comment.
This fixes an issue where tables with data inserted from the csv files could conflict/generate way too high id's with existing data in the table. Happens when we delete/updated data, which makes the sequence ids behave weirdly. This will choose current max sequence id, then set the next generating sequence id one up from that.
...ata_retrieval/data_retrieval_app/data_deposit/item_base_type/item_base_type_data/Amulets.csv
Show resolved
Hide resolved
There was a problem hiding this comment.
Too much work, there are too many foulborn unques related to every basetype. Needs to be inferred from what's persisted in the database, i.e check what baseTypes is related to which items in Item table, then create relatedUniques from that in basetype table.
There was a problem hiding this comment.
Potential problem. Passage should probably be a separate modifier
There was a problem hiding this comment.
https://www.pathofexile.com/trade/search/Keepers/02np40LeIg
Right now it's currently setup like that (bug probably)
..._data_retrieval/data_retrieval_app/external_data_retrieval/data_retrieval/poe_api_handler.py
Show resolved
Hide resolved
...ckend_data_retrieval/data_retrieval_app/external_data_retrieval/detectors/unique_detector.py
Outdated
Show resolved
Hide resolved
| ).message | ||
|
|
||
|
|
||
| @router.post( |
| ) | ||
| await self.create(db=db, obj_in=modifier_in) | ||
| else: | ||
| "I know this shit is messy" |
There was a problem hiding this comment.
Why is an "EMPTY" modifier needed?
| deletion_key: str | None = None, | ||
| ) -> ModelType: | ||
| db_objs = db.query(self.model).filter_by(**filter).all() | ||
| if isinstance(filter, list) and deletion_key is not None: |
There was a problem hiding this comment.
can be list, but no deletion key -> big problem
There was a problem hiding this comment.
probably fine to remove the deltion_key is not none test
|
|
||
| class UniqueFoulbornDetector(UniqueDetector): | ||
| def _check_if_wanted(self, df: pd.DataFrame) -> pd.DataFrame: | ||
| df_filtered = df[df["identified"] & df["mutated"].astype(str) == "True"].loc[ |
| response.raise_for_status() | ||
|
|
||
|
|
||
| def bulk_update_data( |
| return s.split() | ||
|
|
||
|
|
||
| def _lcs_len(a: list[str], b: list[str]) -> float: |
| return dp[m] | ||
|
|
||
|
|
||
| def _diff_chunks(a: list[str], b: list[str]) -> list[tuple[str, str, int]]: |
There was a problem hiding this comment.
add comment on where this logic comes from
| for roll in diff_tuple[:-1] | ||
| ) | ||
| ] | ||
| dfx.at[i, "textRolls"] = dfx.at[i, "textRolls"] + diff_rolls |
There was a problem hiding this comment.
make sure duplicates are not added
| return None | ||
|
|
||
| logger.info( | ||
| "Its been over 3 days since last created modifiers from carantene modifiers. Retrieving carantene modifiers..." |
There was a problem hiding this comment.
change 3 with the settings variable
No description provided.