mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-05 17:39:39 -04:00
Allow omit of explicit true
in complex criteria (#101)
This commit is contained in:
parent
229e76b87d
commit
f9341c8cd3
@ -315,10 +315,14 @@ namespace Observatory.Explorer
|
||||
try
|
||||
{
|
||||
var result = criteriaFunction.Value.Call(scan, parents, scanList, bioSignals, geoSignals);
|
||||
if (result.Length > 0 && ((bool?)result[0]).GetValueOrDefault(false))
|
||||
if (result.Length == 3 && ((bool?)result[0]).GetValueOrDefault(false))
|
||||
{
|
||||
results.Add((result[1].ToString(), result[2].ToString(), false));
|
||||
}
|
||||
else if (result.Length == 2)
|
||||
{
|
||||
results.Add((result[0].ToString(), result[1].ToString(), false));
|
||||
}
|
||||
}
|
||||
catch (NLua.Exceptions.LuaScriptException e)
|
||||
{
|
||||
|
2
ObservatoryHerald/ObservatoryAPI.Designer.cs
generated
2
ObservatoryHerald/ObservatoryAPI.Designer.cs
generated
@ -61,7 +61,7 @@ namespace Observatory.Herald {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to e698cf7e-0fbc-4e9a-b6a4-2480381afcc1.
|
||||
/// Looks up a localized string similar to .
|
||||
/// </summary>
|
||||
internal static string ApiKey {
|
||||
get {
|
||||
|
Loading…
x
Reference in New Issue
Block a user