kopia lustrzana https://github.com/mkdryden/telegram-stats-bot
Stats: Use seconds resolution for title duration plot
rodzic
93feb6c8f8
commit
a247701ab9
|
@ -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
|
||||
|
|
|
@ -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("")
|
||||
|
|
Ładowanie…
Reference in New Issue