Skip to content

Commit

Permalink
watch bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mahs4d committed Nov 20, 2020
1 parent b678389 commit 203f457
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/tsetmc_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from .watch import Watch, Filter, AtiFilter, SahamFilter, WatchTick, SandoghFilter, KalaForoushFilter, \
EkhtiarForoushFilter, HaghTaghaddomFilter, OraghMosharekatFilter, PayeFarabourseFilter

__version__ = '3.0.4'
__version__ = '3.0.5'
10 changes: 6 additions & 4 deletions lib/tsetmc_api/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,13 @@ def start_watch(self):
self.step_watch()

def _publish(self):
if self._last_historical_data is None:
return
if self._historical_data:
if self._last_historical_data is None:
return

if self._last_stats_data is None:
return
if self._stats_data:
if self._last_stats_data is None:
return

if self._last_price_data is None:
return
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="tsetmc-api",
version="3.0.4",
version="3.0.5",
install_requires=[
"beautifulsoup4==4.9.3",
"certifi==2020.11.8",
Expand Down

0 comments on commit 203f457

Please sign in to comment.