Skip to content

Commit 1245e79

Browse files
committed
- Added variable specifying whether the version is beta
- Beta number is commits to app after last stable commit - Logs beta status and number
1 parent ee6a08d commit 1245e79

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

NSE_Option_Chain_Analyzer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
# noinspection PyAttributeOutsideInit
2828
class Nse:
2929
version: str = '5.2'
30+
beta: Tuple[bool, int] = (True, 10)
3031

3132
def __init__(self, window: Tk) -> None:
3233
self.intervals: List[int] = [1, 2, 3, 5, 10, 15]
@@ -726,9 +727,11 @@ def log(self, event: Optional[Event] = None) -> None:
726727
try:
727728
# noinspection PyProtectedMember,PyUnresolvedReferences
728729
base_path: str = sys._MEIPASS
729-
print(platform.system() + ' ' + platform.release() + ' .exe version ' + Nse.version)
730+
print(platform.system() + ' ' + platform.release() + ' .exe version ' + Nse.version +
731+
f" beta {Nse.beta[1]}" if Nse.beta[0] else '')
730732
except AttributeError:
731-
print(platform.system() + ' ' + platform.release() + ' .py version ' + Nse.version)
733+
print(platform.system() + ' ' + platform.release() + ' .py version ' + Nse.version +
734+
f" beta {Nse.beta[1]}" if Nse.beta[0] else '')
732735
if not self.load_nse_icon:
733736
print("NSE icon loading disabled")
734737

0 commit comments

Comments
 (0)