Move get_logs to be static method

This commit is contained in:
Matthias
2020-12-06 19:57:48 +01:00
parent 058d40a72c
commit 51fbd0698c
3 changed files with 4 additions and 3 deletions

View File

@@ -683,7 +683,7 @@ class Telegram(RPC):
limit = int(context.args[0]) if context.args else 10
except (TypeError, ValueError, IndexError):
limit = 10
logs = self._rpc_get_logs(limit)['logs']
logs = RPC._rpc_get_logs(limit)['logs']
msgs = ''
msg_template = "*{}* {}: {} \\- `{}`"
for logrec in logs: