Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simple_controller
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
simple_controller
Commits
b31e017e
Commit
b31e017e
authored
Aug 20, 2023
by
Ivan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix last commit
parent
902fe8d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
group_index.rb
lib/simple_controller/group_index.rb
+1
-1
No files found.
lib/simple_controller/group_index.rb
View file @
b31e017e
...
...
@@ -42,7 +42,7 @@ module SimpleController::GroupIndex
# "B"=>{nil=>[["B", nil, "pending"]]}
# }
tree_result
=
if
statistics
.
values
.
first
.
is_a?
(
Array
)
# 多于一个分组
if
keys
.
length
>
1
# 多于一个分组
process_statistics_key
.
call
(
statistics
.
keys
,
keys
.
size
-
1
)
else
# 只有一个分组
statistics
.
reduce
({})
{
|
result
,
(
k
,
v
)
|
result
.
merge
(
k
=>
[
k
])}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment