Giter Site home page Giter Site logo

Multiple Ranking Systems about pyjudge HOT 15 OPEN

theSage21 avatar theSage21 commented on July 17, 2024
Multiple Ranking Systems

from pyjudge.

Comments (15)

HeroicHitesh avatar HeroicHitesh commented on July 17, 2024 2

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

I can help with that.

from pyjudge.

theSage21 avatar theSage21 commented on July 17, 2024 1

Perhaps you can do that once #34 is finished?

from pyjudge.

theSage21 avatar theSage21 commented on July 17, 2024

@arnabsinha99 could you take this up?

from pyjudge.

arnabsinha99 avatar arnabsinha99 commented on July 17, 2024

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

from pyjudge.

HeroicHitesh avatar HeroicHitesh commented on July 17, 2024

Perhaps you can do that once #34 is finished?

Finished #34

from pyjudge.

arnabsinha99 avatar arnabsinha99 commented on July 17, 2024

@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.

from pyjudge.

theSage21 avatar theSage21 commented on July 17, 2024

Why do you want to include Python inside HTML?

from pyjudge.

arnabsinha99 avatar arnabsinha99 commented on July 17, 2024

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.

from pyjudge.

theSage21 avatar theSage21 commented on July 17, 2024

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

from pyjudge.

theSage21 avatar theSage21 commented on July 17, 2024

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

from pyjudge.

arnabsinha99 avatar arnabsinha99 commented on July 17, 2024

% 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

from pyjudge.

theSage21 avatar theSage21 commented on July 17, 2024

@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.

from pyjudge.

rishabhKalakoti avatar rishabhKalakoti commented on July 17, 2024

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

from pyjudge.

theSage21 avatar theSage21 commented on July 17, 2024

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?

from pyjudge.

rishabhKalakoti avatar rishabhKalakoti commented on July 17, 2024

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

from pyjudge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.