Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Dec 4, 2023
2 parents 8c2faa0 + d4d9417 commit 467f33a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions lib/goo/base/settings/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ def read_only(attributes)
instance
end


def show_all_languages?(args)
args.first.is_a?(Hash) && args.first.keys.include?(:include_languages) && args.first[:include_languages]
end
Expand Down
3 changes: 0 additions & 3 deletions lib/goo/sparql/query_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ def where(patterns)

def paginate
offset = (@page[:page_i] - 1) * @page[:page_size]
# fix for 4store pagination
offset = offset - 1 if offset.positive? && offset.eql?(@page[:page_size])

@query.slice(offset, @page[:page_size])
self
end
Expand Down

0 comments on commit 467f33a

Please sign in to comment.