Stats: Use seconds resolution for title duration plot

pull/12/head
Michael DM Dryden 2022-01-13 03:09:39 -05:00
rodzic 93feb6c8f8
commit a247701ab9
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -9,6 +9,10 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0
-------------
`Unreleased`_
-------------
Changed
-------
- Titles plot uses seconds resolution with -duration option
Fixed
-----
- Fix database creation code for immutable SQLAlchemy 1.4 URLs

Wyświetl plik

@ -604,7 +604,7 @@ class StatsRunner(object):
df = df.reset_index(drop=True)
df['idx'] = df.index
ax.barh(df.idx, df['diff'].dt.days, tick_label=df.new_chat_title)
ax.barh(df.idx, df['diff'].dt.days + df['diff'].dt.seconds/86400, tick_label=df.new_chat_title)
ax.margins(0.2)
ax.set_ylabel("")