Skip to content

Commit

Permalink
fix version checking for tg bot
Browse files Browse the repository at this point in the history
  • Loading branch information
titulebolide committed Jan 19, 2022
1 parent 1985bbd commit 1c07dfa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions btb_manager_telegram/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,10 @@ def is_btb_bot_update_available():
.decode()
.rstrip("\n")
)
current_version = current_version.split("-")[0]
remote_version = remote_version.split("-")[0]
print(current_version, remote_version)

current_version = "-".join(current_version.split("-")[:-2])
remote_version = "-".join(remote_version.split("-")[:-2])
re = current_version != remote_version
except Exception as e:
logger.error(e, exc_info=True)
Expand Down

0 comments on commit 1c07dfa

Please sign in to comment.