main: Fix call to bak_store when disabled

master v0.8.1
Michael DM Dryden 2023-11-17 01:06:20 -05:00
rodzic 75560be5dc
commit 552f65dcf6
3 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_,
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
----------
`0.8.1`_ - 2023-11-17
----------
Fixed
-----
- Fix Sqlalchemy related username insertion bug
- Fix exception when backup store is disabled
----------
`0.8.0`_ - 2023-11-13
@ -173,3 +180,4 @@ Fixed
.. _0.6.3: https://github.com/mkdryden/telegram-stats-bot/releases/tag/v0.6.3
.. _0.7.0: https://github.com/mkdryden/telegram-stats-bot/releases/tag/v0.7.0
.. _0.8.0: https://github.com/mkdryden/telegram-stats-bot/releases/tag/v0.8.0
.. _0.8.1: https://github.com/mkdryden/telegram-stats-bot/releases/tag/v0.8.1

Wyświetl plik

@ -1,6 +1,6 @@
[tool.poetry]
name = "telegram-stats-bot"
version = "0.8.0"
version = "0.8.1"
description = "A logging and statistics bot for Telegram based on python-telegram-bot."
authors = ["Michael DM Dryden <mk.dryden@utoronto.ca>"]
repository = "https://github.com/mkdryden/telegram-stats-bot"

Wyświetl plik

@ -77,7 +77,8 @@ async def log_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
if len(user) > 0:
for i in user:
if i:
bak_store.append_data('user_events', i)
if bak_store:
bak_store.append_data('user_events', i)
store.append_data('user_events', i)