parent
685e4b09f8
commit
2a38bed1ad
@ -1,10 +1,16 @@
|
||||
json.hack do
|
||||
json.(@hack, :difficult, :time_limit, :description, :score)
|
||||
json.(@hack, :difficult, :time_limit, :description, :score, :identifier)
|
||||
json.language @hack.language
|
||||
json.username @hack.user.real_name
|
||||
json.code @my_hack.code
|
||||
json.pass_count @hack.pass_num
|
||||
json.submit_count @hack.submit_num
|
||||
end
|
||||
|
||||
json.test_case do
|
||||
json.input @hack.input_test_case
|
||||
end
|
||||
|
||||
json.user_code do
|
||||
json.code @my_hack.code
|
||||
end
|
Loading…
Reference in new issue