cugbacm / oj Goto Github PK
View Code? Open in Web Editor NEWcugbacmOJ
cugbacmOJ
主要是views.py文件中的代码。
建议一个功能或者一个页面一个.py文件例如:
problem_list.py
problem.py
submit.py
contest_submit.py
user_list.py
user_info.py
在main函数的result字典结果中加入错误信息字段
RT
http://akplayground.site:8000
用户:test 密码:test1122
很古老的版本一只没更新
由于windows转linux,数据格式发生变化,可能丢失了最后的换行,导致PE。
先排查是否有这问题,如果有的话,想办法批量在数据最后加换行。建议可以写一个脚本。
比较两个用户的ac情况,列出都ac的,只有A ac的,只有B ac的。
目前任何人都能进入比赛,还没有加入权限逻辑。建议实现方法如下:
目前每个比赛有个user_list字段,只有在user_list中的user才能进入比赛,可以先通过session得到当前登录用户的user_id,然后看是否在user_list中,如果在就跳转到比赛题目页面,如果不在就跳转到一个页面提示说他没权限。建议这个逻辑写到views/contest.py中。目测10行之内搞定。
contest_problem中的submit列表要从当前contest和当前用户中选择,不能显示常规提交列表。
提交的时候要提交到contest_submit这个类中。
比如交了一题python代码,点击语言跳转到看代码的页面/?submit_id=xxxx,但是语言在choice中依然是g++,没有把语言参数传进去,详细代码见views/problem.py template/cugbacm/problem.html。这个bug在submit_problem中也存在。
移植常规problem页面至contest_problem页面,页面路径是115.28.170.176/index/contest/contest_id/problem/problem_id
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.