0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02:00

Update plugin.rb

Dieser Commit ist enthalten in:
Angus McLeod 2023-10-04 14:16:52 +08:00
Ursprung 6472b2aaa2
Commit e29605c660

Datei anzeigen

@ -56,12 +56,16 @@ module DiscoursePluginStatistics
} }
increment_feature_count = lambda do |type, key, value| increment_feature_count = lambda do |type, key, value|
if key == 'type' && !subscription_features[type.to_sym][:type][value.to_sym].nil? if key == 'type'
if !subscription_features[type.to_sym][:type][value.to_sym].nil?
subscription_features[type.to_sym][:type][value.to_sym] += 1 subscription_features[type.to_sym][:type][value.to_sym] += 1
elsif !subscription_features[type.to_sym][key.to_sym].nil? end
else
if !subscription_features[type.to_sym][key.to_sym].nil?
subscription_features[type.to_sym][key.to_sym] += 1 subscription_features[type.to_sym][key.to_sym] += 1
end end
end end
end
CustomWizard::Template.list.each do |template| CustomWizard::Template.list.each do |template|
template.each do |key, value| template.each do |key, value|