mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed list captures not showing in the Hits DB on load.
This commit is contained in:
@@ -119,7 +119,9 @@ namespace RuriLib.Models
|
||||
return Value;
|
||||
|
||||
case VarType.List:
|
||||
return "[" + string.Join(", ", (List<string>)Value) + "]";
|
||||
if (Value.GetType() == typeof(List<string>)) return "[" + string.Join(", ", (List<string>)Value) + "]"; // Coming internally
|
||||
else if (Value.GetType() == typeof(object[])) return "[" + string.Join(", ", Value) + "]"; // Coming from the DB
|
||||
else return "";
|
||||
|
||||
case VarType.Dictionary:
|
||||
return "{" + string.Join(", ", ((Dictionary<string, string>)Value).Select(d => "(" + d.Key + ", " + d.Value + ")")) + "}";
|
||||
|
||||
Reference in New Issue
Block a user