Giter Site home page Giter Site logo

oj's People

Contributors

akfheaven avatar cugb1004101218 avatar cugblbs avatar hesix avatar liaoqinchao avatar lihongqiang avatar lihongqiangg avatar xr-bluesky avatar xuanwo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oj's Issues

代码拆分

主要是views.py文件中的代码。
建议一个功能或者一个页面一个.py文件例如:
problem_list.py
problem.py
submit.py
contest_submit.py
user_list.py
user_info.py

题目数据测试排错

由于windows转linux,数据格式发生变化,可能丢失了最后的换行,导致PE。
先排查是否有这问题,如果有的话,想办法批量在数据最后加换行。建议可以写一个脚本。

比赛权限控制

目前任何人都能进入比赛,还没有加入权限逻辑。建议实现方法如下:
目前每个比赛有个user_list字段,只有在user_list中的user才能进入比赛,可以先通过session得到当前登录用户的user_id,然后看是否在user_list中,如果在就跳转到比赛题目页面,如果不在就跳转到一个页面提示说他没权限。建议这个逻辑写到views/contest.py中。目测10行之内搞定。

contest_submit逻辑实现,BUG修复

contest_problem中的submit列表要从当前contest和当前用户中选择,不能显示常规提交列表。
提交的时候要提交到contest_submit这个类中。

看代码页面language BUG

比如交了一题python代码,点击语言跳转到看代码的页面/?submit_id=xxxx,但是语言在choice中依然是g++,没有把语言参数传进去,详细代码见views/problem.py template/cugbacm/problem.html。这个bug在submit_problem中也存在。

contest_problem页面

移植常规problem页面至contest_problem页面,页面路径是115.28.170.176/index/contest/contest_id/problem/problem_id

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.