Improve Ordering of Homepage Birthday Banners #170
Labels
good first issue
Easy to implement and a good way to introduce users to the MagiCircles framework.
low priority
optimization
Currently on BanPa, we have birthday banners that generate about 12 days before their birthday.
While everything works, I noticed that Himari's banner was in front of Rinko's, even though her birthday was later. Since Rinko's birthday is coming up sooner, it'd make more sense for her to be up front since her date is closer.
I believe the way to do this is simple too! In this section:
BanGDream/bang/management/commands/generate_settings.py
Lines 28 to 30 in 426ae2d
you just need to add something like:
.order_by('birthday')
One more thing I wanted to suggest was adding logic so that the trained forms of cards can be used for birthday banners too! Currently it is only taking into account the untrained art, as shown here:
BanGDream/bang/management/commands/generate_settings.py
Line 43 in 426ae2d
If you modified the above and this:
BanGDream/bang/management/commands/generate_settings.py
Line 31 in 426ae2d
you should be able to get it to allow the trained cards to be used too! Whether it's preferred or only used as a backup for when a card's untrained art doesn't work is unimportant to me, but I think people generally like seeing the newer cards, so it might help with that.
The text was updated successfully, but these errors were encountered: