yfinance-exporter 1.0.8__py3-none-any.whl → 1.0.9__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.8
3
+ Version: 1.0.9
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=roRbAtpbrxqTm2sfrtQ1m05lR3_l_jPOE5NvuO1HSlM,4399
2
+ yfinance_exporter-1.0.9.dist-info/METADATA,sha256=OmEs0MDnOInsiDlwHMYgPNS-Sezp4slFlZG_y-Fzjnc,1525
3
+ yfinance_exporter-1.0.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
4
+ yfinance_exporter-1.0.9.dist-info/RECORD,,
yfinance_exporter.py CHANGED
@@ -94,14 +94,16 @@ def collect(stock) -> bool:
94
94
  def update_state(result: bool, key: str, states: dict, labels: dict):
95
95
  previous = states.get(key)
96
96
  states[key] = result
97
- logger.debug("%r: result %r => %r", key, previous, result)
98
97
  if previous == result:
98
+ logger.debug("%r: result %r => %r UNCHANGED", key, previous, result)
99
99
  return
100
100
  inc_key, dec_key = "items-ok", "items-ko"
101
101
  if not result:
102
102
  inc_key, dec_key = "items-ko", "items-ok"
103
+ logger.debug("%s(%r => %r) %s-1", key, previous, result, inc_key)
103
104
  DAEMON.labels(status=inc_key, **labels).inc()
104
105
  if previous is not None:
106
+ logger.debug("%s(%r => %r) %s-1", key, previous, result, dec_key)
105
107
  DAEMON.labels(status=dec_key, **labels).dec()
106
108
 
107
109
 
@@ -1,4 +0,0 @@
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,,