friedrich-de / TMW_Bot

GNU General Public License v3.0
2 stars 5 forks source link

Adjustments to immersion_stats.py #7

Closed friedrich-de closed 3 weeks ago

friedrich-de commented 3 weeks ago

Right now the /log_stats command only gives you an overview of earned points for all media types combined.

Suggestion:

Add media_type as an optional argument to the /log_stats command. A prepared list with Choice objects for this can be found in media_types.py in LOG_CHOICES. If a media_type is selected, instead of displaying the total points, the corresponding unit is used.

So instead of points_received the amount_logged column is used. The unit name can be retrieved from MEDIA_TYPES in media_types.py.

J-O-S-H-L commented 3 weeks ago

Should have a solution today

friedrich-de commented 3 weeks ago

Good job!