From 4a86540964e1039bf46ab19c82cb9b4fa8989ec4 Mon Sep 17 00:00:00 2001 From: Yogesh Jagota Date: Thu, 10 Mar 2022 03:11:36 +0530 Subject: [PATCH] Fixed errors with tksheet versions 5.0.29+ --- NSE_Option_Chain_Analyzer.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NSE_Option_Chain_Analyzer.py b/NSE_Option_Chain_Analyzer.py index 62da409..8abe36f 100644 --- a/NSE_Option_Chain_Analyzer.py +++ b/NSE_Option_Chain_Analyzer.py @@ -1314,7 +1314,7 @@ def set_itm_labels(call_change: float, put_change: float) -> str: self.put_sum, self.difference, self.call_boundary, self.put_boundary, self.call_itm, self.put_itm] - self.sheet.insert_row(values=output_values) + self.sheet.insert_row(values=output_values, add_columns=True) #add_columns was defaulted to false in v5.0.29 of tksheet if self.live_export: self.export_row(output_values) diff --git a/requirements.txt b/requirements.txt index aa6dac6..8f63247 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ beautifulsoup4>=4.9.3 pandas>=1.2.4 requests>=2.24.0 streamtologger>=2017.1 -tksheet==5.0.24 +tksheet>=5.0.24 win10toast>=0.9; platform_system == "Windows" and platform_release == "10"