Skip to content

Commit 33ca44c

Browse files
fix : VERSION renamed to ORANGETOOL_VERSION
1 parent b1085a0 commit 33ca44c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

orangetool/orangetool_system.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from art import tprint
77
ip_pattern = r"(?:[0-9]{1,3}\.){3}[0-9]{1,3}"
88
api_1 = "http://ipinfo.io/ip"
9-
VERSION = "0.35"
9+
ORANGETOOL_VERSION = "0.35"
1010
UPDATE_URL = "http://www.orangetool.ir/version"
1111

1212

@@ -20,7 +20,7 @@ def check_update(debug=False):
2020
"""
2121
try:
2222
new_version = requests.get(UPDATE_URL).text
23-
if float(new_version) > float(VERSION):
23+
if float(new_version) > float(ORANGETOOL_VERSION):
2424
print("New Version (" + new_version + ") Of Orangetool Is Available")
2525
return True
2626
print("Update!")
@@ -132,7 +132,7 @@ def version():
132132
:return: return orangetool-version number as string
133133
"""
134134
tprint("orangetool", font="bulbhead")
135-
tprint("v"+VERSION,font="bulbhead")
135+
tprint("v"+ORANGETOOL_VERSION,font="bulbhead")
136136

137137

138138
def wakeup(day=0, hour=0, minute=0, debug=False):

0 commit comments

Comments
 (0)