Comments (3)
I added an update_points function that receives the post_save signal from Round : when a round is saved, eg from the admin panel, it triggers this function that computes points for participants and teams (which were added a field points_so_far). Then all views should use this db field. That's a progress, but it's not perfect yet (some views still need to compute some scores).
from ipt_connect.
@xuod Could you please explain your improvement of yesterday?
from ipt_connect.
Some detail to the optimization :
Round
model now does the computation of its scores (I call score the averaged grades of the jury for one round) and points (=scores * coefficients) when it is saved (I overrode thesave
function).Team
,Participant
andProblem
models each have anupdate_scores
function too that computes the total points and/or the mean scores in for each role (see #19 ) and save those to the database.- in admin.py, I override the
save
andsave_related
functions, so that when a round is saved from the admin, it will :
- save the rejections and the jury grades in the database
- call
Round.update_scores
- call
Team.update_scores
for the teams participating in the round - each of these call
Participant.update_scores
for its participants - call
Problem.update_scores
from ipt_connect.
Related Issues (20)
- Display eternal rejections on the Team detail page
- An auxiliary page with list of parameteres
- Public remarks on Teams to be displayed only in ranking
- Table with score dynamics
- Semieternal rejections
- verify_all: emit a warning if the list of jurors of rounds of the same fight are different.
- Adequate summary for non-matching jurors
- Visually display the scores that have been discarded
- More detailed overview of jurors
- An option to hide inactive jury members
- .yml export for IYPT-compatibility reasons
- Code refactor, PEP8
- Import: `Mordor` and `Mordor ` should be the same teams
- verify_all: give an Error when there are rejections of two types in the same Round
- verify_all: emit an Error if two Rounds have equal number and equal Room
- Before the semifinals start, teams should be ranked by SF points, not by random
- Commit necessary files in `.idea` folder
- Short "names" of countries
- Links to look at Round/Team/etc from admin panel
- Pass `params` to the rendering function always
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 ipt_connect.