mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-03-09 13:24:53 +00:00
Add frozen string literal comment to files.
This commit is contained in:
parent
b83eefd9b8
commit
817a233cef
2
Gemfile
2
Gemfile
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
|
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
# bundle install
|
# bundle install
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Queries
|
class Queries
|
||||||
def self.default
|
def self.default
|
||||||
# WARNING: Edit the query hash carefully
|
# WARNING: Edit the query hash carefully
|
||||||
@ -421,8 +423,8 @@ class Queries
|
|||||||
WHERE CASE WHEN :include_pms THEN true ELSE t.archetype = 'regular' END
|
WHERE CASE WHEN :include_pms THEN true ELSE t.archetype = 'regular' END
|
||||||
AND t.deleted_at IS NULL
|
AND t.deleted_at IS NULL
|
||||||
AND p.deleted_at IS NULL
|
AND p.deleted_at IS NULL
|
||||||
AND p.created_at::date >= :start_date
|
AND p.created_at::date >= :start_date
|
||||||
AND p.created_at::date <= :end_date
|
AND p.created_at::date <= :end_date
|
||||||
AND p.post_number > 1
|
AND p.post_number > 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# name: discourse-data-explorer
|
# name: discourse-data-explorer
|
||||||
# about: Interface for running analysis SQL queries on the live database
|
# about: Interface for running analysis SQL queries on the live database
|
||||||
# version: 0.2
|
# version: 0.2
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
describe DataExplorer::QueryController do
|
describe DataExplorer::QueryController do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user