apachano / minetestdb

Database for minetest content
2 stars 1 forks source link

Handling sorting #2

Open apachano opened 7 years ago

apachano commented 7 years ago

I have yet to figure out how to handle sorting the lists. Right now the lists are sorted by the oldest post first (because they have the lowest index number) I am thinking It should organized by number of stars but how would I prevent someone from creating a ton of accounts to get more stars.

M3TIOR commented 6 years ago

That's why captcha's exist. Even though they don't do much it's still something.

Also, what lists are you talking about? if you're wondering how to reorganize something that has an underlying django model / sql database structure, just use the data that persists therein. Otherwise maybe a snippit or code reference would be helpful.

M3TIOR commented 6 years ago

Perhaps it would be wise to invest in many sorting options per user choice?

apachano commented 6 years ago

That is a good idea, I got stuck making it switch between oldest first and newest first and have yet to progress further.

So far I have worked on it in this file https://github.com/apachano/minetestdb/blob/master/servers/views.py however pulling information from the POST has proven to be a bigger pain than it should be.