Skip to content

Commit

Permalink
improve checking play store version
Browse files Browse the repository at this point in the history
  • Loading branch information
Deko committed Apr 25, 2024
1 parent dea5394 commit eea2322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ async def check_phone_preconditions(adb_instance: ADB):
installed_version = await adb_instance.get_tft_version()
play_store_version = google_play_scraper.app(adb_instance.tft_package_name)["version"]

if int(play_store_version.replace(".", "")) > int(installed_version.replace(".", "")):
if helpers.is_version_string_newer(play_store_version, installed_version):
raise_and_exit("A new version of the TFT app is available. Please update to not be locked in queue.")

logger.debug("Checking if TFT is active")
Expand Down

0 comments on commit eea2322

Please sign in to comment.