Skip to content

Commit

Permalink
Increase shinystats timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
versx committed Nov 23, 2020
1 parent 60c4ad6 commit da3e00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/ShinyStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ internal static Task<Dictionary<uint, ShinyPokemonStats>> GetShinyStats(string s
{
using (var db = DataAccessLayer.CreateFactory(scannerConnectionString).Open())
{
db.SetCommandTimeout(10 * 1000); // 10 seconds timeout
db.SetCommandTimeout(30 * 1000); // 30 seconds timeout
var yesterday = DateTime.Now.Subtract(TimeSpan.FromHours(24)).ToString("yyyy/MM/dd");
var pokemonShiny = db.Select<PokemonStatsShiny>().Where(x => string.Compare(x.Date.ToString("yyyy/MM/dd"), yesterday, true) == 0).ToList();
var pokemonIV = db.Select<PokemonStatsIV>().Where(x => string.Compare(x.Date.ToString("yyyy/MM/dd"), yesterday, true) == 0)?.ToDictionary(x => x.PokemonId);
Expand Down

0 comments on commit da3e00a

Please sign in to comment.