Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Commit

Permalink
Updated AutoUpdate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StawaDev committed Jan 9, 2022
1 parent 1363658 commit 69f670d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Estrapy/autoupdate.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import requests
import os
from __init__ import __version__ as current_version

version = requests.get("https://estra-api.herokuapp.com/version").json()["Estrapy-API"]["Estrapy Version"]


def autoupdate():
if version != "0.1.8":
if current_version != version:
print(
f"Estrapy-API - new version is up! AutoUpdate will be upgrading version to {version}"
)
Expand Down

0 comments on commit 69f670d

Please sign in to comment.