0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 11:52:54 +01: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,10 +56,14 @@ module DiscoursePluginStatistics
}
increment_feature_count = lambda do |type, key, value|
if key == 'type' && !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?
subscription_features[type.to_sym][key.to_sym] += 1
if key == 'type'
if !subscription_features[type.to_sym][:type][value.to_sym].nil?
subscription_features[type.to_sym][:type][value.to_sym] += 1
end
else
if !subscription_features[type.to_sym][key.to_sym].nil?
subscription_features[type.to_sym][key.to_sym] += 1
end
end
end