Top of the Pops 2

I’ve just amended – slightly – the code that creates the top tune charts so that it now excludes recent winners for a week.

When I was setting the charts up and running a test version I did wonder if they might end up as self perpetuating … and so it proved. They worked fine when it was just me looking at them, but as soon as I published them, the same tune appeared in the top slot for a whole week.

Now I’m sure that “Acano mlada nevesto” is a mighty fine tune, but I’m not convinced it’s the most popular on the website. And what I think was happening was that people were seeing it at the top of the charts and clicking on it to see what all the fuss was.

And so it stayed at the top.

Of course, that’s kind of the way that the real pop charts work … only with the slight difference that people actually have to pay money to keep a song at the top. Whereas here on the website, a click is free.

However, with a quick modification, previous number 1 winners are now excluded for a week (with a list of the previous week’s winners stored lower down the page).

Anyway … just a little diversion in this hectic world. Enjoy!


Tags: , ,

Comments are closed.