Skip to content

Conversation

@hellcp
Copy link
Member

@hellcp hellcp commented Dec 14, 2025

Untested!

appstore/api.py Outdated
Comment on lines 30 to 31
elif sorting == 'decaying_hearts':
results = results.order_by(App.decaying_hearts.desc())
Copy link
Contributor

Choose a reason for hiding this comment

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

Although 'decaying hearts' is a recurring theme in my life, I think that perhaps 'recent_hearts' might be a more pleasant name.

func.sum(
func.pow(
0.9,
func.cast(func.current_date(), Date) - func.cast(UserLike.created_at, Date)
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, sure, this works too.

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.

2 participants