yfinance-exporter 1.0.7__py3-none-any.whl → 1.0.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: yfinance-exporter
3
- Version: 1.0.7
3
+ Version: 1.0.8
4
4
  Summary:
5
5
  Author: François Schmidts
6
6
  Author-email: francois@schmidts.fr
@@ -0,0 +1,4 @@
1
+ yfinance_exporter.py,sha256=dWRisWYrcgQpAydWI6C4pjcswOn0PDFtJuFjw3WYbbM,4241
2
+ yfinance_exporter-1.0.8.dist-info/METADATA,sha256=k9BOjhid1uGJB3ZE576bQkW_NaiezQTfo-5CJ5fYYKM,1525
3
+ yfinance_exporter-1.0.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
4
+ yfinance_exporter-1.0.8.dist-info/RECORD,,
yfinance_exporter.py CHANGED
@@ -92,9 +92,9 @@ def collect(stock) -> bool:
92
92
 
93
93
 
94
94
  def update_state(result: bool, key: str, states: dict, labels: dict):
95
- logger.debug("%r: updating current state with result %r", key, result)
96
95
  previous = states.get(key)
97
96
  states[key] = result
97
+ logger.debug("%r: result %r => %r", key, previous, result)
98
98
  if previous == result:
99
99
  return
100
100
  inc_key, dec_key = "items-ok", "items-ko"
@@ -121,6 +121,7 @@ def main():
121
121
  for stock in conf.stocks:
122
122
  result = collect(stock)
123
123
  update_state(result, stock.isin, states, labels)
124
+ logger.debug("Wating computed interval %r", in_loop_interval)
124
125
  time.sleep(in_loop_interval)
125
126
 
126
127
  exec_interval = (datetime.now() - start).total_seconds()
@@ -1,4 +0,0 @@
1
- yfinance_exporter.py,sha256=2z-RR1kwyXqKnAsc_TmUJTGhvylMN6daNNMaSGxcsb0,4179
2
- yfinance_exporter-1.0.7.dist-info/METADATA,sha256=xNxqoFlOunh-BktPy4mOFuQfq0mFJTqImCUh79_RLik,1525
3
- yfinance_exporter-1.0.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
4
- yfinance_exporter-1.0.7.dist-info/RECORD,,