|
|
@ -30,6 +30,17 @@ class WelcomeController < ApplicationController
|
|
|
|
require 'simple_xlsx_reader'
|
|
|
|
require 'simple_xlsx_reader'
|
|
|
|
|
|
|
|
|
|
|
|
DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z)
|
|
|
|
DCODES = %W(2 3 4 5 6 7 8 9 a b c f e f g h i j k l m n o p q r s t u v w x y z)
|
|
|
|
|
|
|
|
def local_init
|
|
|
|
|
|
|
|
LocalShixun.delete_all
|
|
|
|
|
|
|
|
LocalMirrorRepository.delete_all
|
|
|
|
|
|
|
|
LocalShixunTagRepertoire.delete_all
|
|
|
|
|
|
|
|
LocalChallenge.delete_all
|
|
|
|
|
|
|
|
LocalTestSet.delete_all
|
|
|
|
|
|
|
|
LocalChallengeTag.delete_all
|
|
|
|
|
|
|
|
render :json => {status: 0, message: "success"}
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def shixun_to_local
|
|
|
|
def shixun_to_local
|
|
|
|
identifiers = params[:identifiers].split(",")
|
|
|
|
identifiers = params[:identifiers].split(",")
|
|
|
|
shixuns = Shixun.where(identifier: identifiers)
|
|
|
|
shixuns = Shixun.where(identifier: identifiers)
|
|
|
|