Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Ranking Systems #59

Open
theSage21 opened this issue Jan 25, 2019 · 15 comments
Open

Multiple Ranking Systems #59

theSage21 opened this issue Jan 25, 2019 · 15 comments
Labels
enhancement New feature or request

Comments

@theSage21
Copy link
Member

Instead of just one ranking system it would be nice to be able to rank competitors using multiple ranking systems as mentioned in #30

PRs for this issue must include:

  • HTML template to show the rankings
  • python code to generate multiple rankings based on user attempt history
@theSage21 theSage21 added the enhancement New feature or request label Jan 25, 2019
@theSage21
Copy link
Member Author

@arnabsinha99 could you take this up?

@arnabsinha99
Copy link
Contributor

Yeah alright. I would need help in the HTML part though.

@theSage21
Copy link
Member Author

Perhaps you can do that once #34 is finished?

@HeroicHitesh
Copy link
Contributor

Perhaps you can do that once #34 is finished?

Finished #34

@HeroicHitesh
Copy link
Contributor

Yeah alright. I would need help in the HTML part though.

I can help with that.

@arnabsinha99
Copy link
Contributor

@HeroicHitesh Sorry for the delay.. let us continue with this issue.. Do you have any sources which I can refer to learn how to include Python codes in HTML? I use Python 3.6.5. I found this link here but this syntax does not seem to work in VSCode 2015.

@theSage21
Copy link
Member Author

Why do you want to include Python inside HTML?

@arnabsinha99
Copy link
Contributor

When we want to print the ranklist consisting of various usernames, I could not get any method other than using a Python for loop inside the HTML code. But then the problem is that how can I use the variables in server.py in the HTML code.

@theSage21
Copy link
Member Author

Let's not reinvent PHP here. Could you open a PR and let us look at the code?

@theSage21
Copy link
Member Author

As for the python + html you'll need to use bottle's simple template language for now

@arnabsinha99
Copy link
Contributor

% for name, rank, score in people :
<tr>
<td>{{name}}</td>
<td>{{score}}</td>
<td>{{rank}}</td>
</tr>
% end

This is the part of the code from Rankings.html . First of all, there is no variable such as "people". Second, this code is being printed as it is in the browser. I needed help with this issue. Although, I will use template functions only here for using Python code in HTML. @theSage21

@theSage21
Copy link
Member Author

@arnabsinha99 please open a PR. There are so many things that could be going wrong. I need to see the code before saying anything. At the very least post a screenshot of the browser page that is showing this behavior.

@rishabhKalakoti
Copy link
Contributor

For this issue can we just have one overall ranking and individual contest rankings for now?

@theSage21
Copy link
Member Author

this actually meant something like "rank by efficiency", "rank by points", "rank by speed of solving" etc. What you're talking about is a contest Leaderboard and an overall leaderboard right?

@rishabhKalakoti
Copy link
Contributor

@theSage21 Okay. Yes. That was what I meant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants