This commit is contained in:
Alex Ling
2021-07-11 11:19:08 +00:00
parent 259f6cb285
commit f56ce2313c
4 changed files with 48 additions and 8 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ struct Filter
key = json["key"].as_s
type = FilterType.from_string json["type"].as_s
_value = json["value"]
value = _value.as_s? || _value.as_i32? || _value.as_i64? ||
value = _value.as_s? || _value.as_i? || _value.as_i64? ||
_value.as_f32? || nil
self.new key, value, type
end
@@ -82,6 +82,6 @@ struct SubscriptionList
end
def save
File.write @path, @ary.to_json
File.write @path, @ary.to_pretty_json
end
end