Comments (15)
Yeah alright. I would need help in the HTML part though.
I can help with that.
from pyjudge.
Perhaps you can do that once #34 is finished?
from pyjudge.
@arnabsinha99 could you take this up?
from pyjudge.
Yeah alright. I would need help in the HTML part though.
from pyjudge.
Perhaps you can do that once #34 is finished?
Finished #34
from pyjudge.
@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.
Why do you want to include Python inside HTML?
from pyjudge.
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.
Let's not reinvent PHP here. Could you open a PR and let us look at the code?
from pyjudge.
As for the python + html you'll need to use bottle's simple template language for now
from pyjudge.
% 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.
@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.
For this issue can we just have one overall ranking and individual contest rankings for now?
from pyjudge.
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.
@theSage21 Okay. Yes. That was what I meant.
from pyjudge.
Related Issues (20)
- Install pytest in pipenv HOT 2
- Database HOT 1
- Contest timings HOT 2
- Home page HOT 5
- Multiple contests
- Multiple contest UI design
- Move pre-commit and black to dev dependencies
- Pip installable project HOT 11
- 404 handler HOT 2
- Proper question statement and support HOT 5
- Session support
- Use sqlite as a database
- Interface to add questions via website HOT 4
- Raise error in proper places HOT 5
- Use a more common template system HOT 5
- Continuous testing needs to be added
- User stats/ profile HOT 4
- problem status in contest
- Reinstall black HOT 1
- Code Documentaion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyjudge.