There’s probably a “smart” way we can remove some of the entries in the mapping like adding each key with both space removed, and space replaced by a period. For example Bunny Girl adding both bunnygirl and bunny.girl to the genre list, as their existence is checked later on anyway. But of course it’s simpler to just hardcode it.
There's probably a "smart" way we can remove some of the entries in the mapping like adding each key with both space removed, and space replaced by a period. For example `Bunny Girl` adding both `bunnygirl` and `bunny.girl` to the genre list, as their existence is checked later on anyway. But of course it's simpler to just hardcode it.
I would definitely prefer if we just created aliases for these tags using gazelle’s built in tooling and let that system handle these transformations, but I don’t really want to do the work to add them so this is fine.
I would definitely prefer if we just created aliases for these tags using gazelle's built in tooling and let that system handle these transformations, but I don't really want to do the work to add them so this is fine.
+ does do concatenation, but yeah it’s wrong to use it here since it ignores duplicate keys
Yeah that makes it a union operation, not concatenation.
>`+` does do concatenation, but yeah it’s wrong to use it here since it ignores duplicate keys
Yeah that makes it a union operation, not concatenation.
There’s probably a “smart” way we can remove some of the entries in the mapping like adding each key with both space removed, and space replaced by a period. For example
Bunny Girl
adding bothbunnygirl
andbunny.girl
to the genre list, as their existence is checked later on anyway. But of course it’s simpler to just hardcode it.I’ve also now fixed the order of idol name/surnames and fixed the cover image part that causes the autofill to crash.
I would definitely prefer if we just created aliases for these tags using gazelle’s built in tooling and let that system handle these transformations, but I don’t really want to do the work to add them so this is fine.
I don’t think
+
does concatenation on arrays in php. You probably need to usearray_merge
+
does do concatenation, but yeah it’s wrong to use it here since it ignores duplicate keys. Switched toarray_merge
and now it works as expectedYeah that makes it a union operation, not concatenation.
You’re right, I’m retarded