Fix some bugs when close_to and find were asked to list stations

#14 Merged at ad25fda
Repository
cmdr-furrycat
Branch
close-to-sql
Repository
Esvandiary
Branch
develop
Author
  1. CMDR furrycat
Reviewers
Description
  • Don't crash when trying to show unknown station distance.

    We were trying to sort a Dist against a float.

  • Don't crash in find_stations() when there are many systems.

    We can only build a parameterised query with at most
    SQLITE_MAX_VARIABLE_NUMBER parameters. By default that is 999, although
    there is no easy way to determine programatically what the
    implementation limit is, so we assume it is 999 and split the query into
    batches of at most that size.

Comments (0)