Corrected with rubocop cop 'Style/AccessorMethodName'.
This commit is contained in:
parent
4b4c7386a2
commit
bae19fd9d7
2 changed files with 7 additions and 7 deletions
|
@ -93,7 +93,7 @@ class ImportOtrsController < ApplicationController
|
||||||
def import_status
|
def import_status
|
||||||
return if setup_done_response
|
return if setup_done_response
|
||||||
|
|
||||||
state = Import::OTRS2.get_current_state
|
state = Import::OTRS2.current_state
|
||||||
|
|
||||||
render json: {
|
render json: {
|
||||||
data: state,
|
data: state,
|
||||||
|
|
|
@ -212,9 +212,9 @@ module Import::OTRS2
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
||||||
get object statisitic from server ans save it in cache
|
get object statistic from server ans save it in cache
|
||||||
|
|
||||||
result = get_statisitic('Subaction=List')
|
result = statistic('Subaction=List')
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@ module Import::OTRS2
|
||||||
|
|
||||||
=end
|
=end
|
||||||
|
|
||||||
def self.get_statisitic
|
def self.statistic
|
||||||
|
|
||||||
# check cache
|
# check cache
|
||||||
cache = Cache.get('import_otrs_stats')
|
cache = Cache.get('import_otrs_stats')
|
||||||
|
@ -246,7 +246,7 @@ module Import::OTRS2
|
||||||
|
|
||||||
return current import state
|
return current import state
|
||||||
|
|
||||||
result = get_current_state
|
result = current_state
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -263,8 +263,8 @@ module Import::OTRS2
|
||||||
|
|
||||||
=end
|
=end
|
||||||
|
|
||||||
def self.get_current_state
|
def self.current_state
|
||||||
data = self.get_statisitic
|
data = self.statistic
|
||||||
base = Group.count + Ticket::State.count + Ticket::Priority.count
|
base = Group.count + Ticket::State.count + Ticket::Priority.count
|
||||||
base_total = data['Queue'] + data['State'] + data['Priority']
|
base_total = data['Queue'] + data['State'] + data['Priority']
|
||||||
user = User.count
|
user = User.count
|
||||||
|
|
Loading…
Reference in a new issue