Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 02:30:28 +01:00
Update plugin.rb
Dieser Commit ist enthalten in:
Ursprung
6472b2aaa2
Commit
e29605c660
1 geänderte Dateien mit 8 neuen und 4 gelöschten Zeilen
|
@ -56,12 +56,16 @@ module DiscoursePluginStatistics
|
|||
}
|
||||
|
||||
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
|
||||
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
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
CustomWizard::Template.list.each do |template|
|
||||
template.each do |key, value|
|
||||
|
|
Laden …
In neuem Issue referenzieren