Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +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,10 +56,14 @@ 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'
|
||||||
subscription_features[type.to_sym][:type][value.to_sym] += 1
|
if !subscription_features[type.to_sym][:type][value.to_sym].nil?
|
||||||
elsif !subscription_features[type.to_sym][key.to_sym].nil?
|
subscription_features[type.to_sym][:type][value.to_sym] += 1
|
||||||
subscription_features[type.to_sym][key.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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren