mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
Simplify userid conversion to integer in Synology Chat module
Co-authored-by: jxxghp <jxxghp@live.cn>
This commit is contained in:
@@ -121,7 +121,7 @@ class SynologyChat:
|
|||||||
index += 1
|
index += 1
|
||||||
|
|
||||||
if userid:
|
if userid:
|
||||||
userids = [int(userid) if str(userid).isdigit() else userid]
|
userids = [int(userid)]
|
||||||
else:
|
else:
|
||||||
userids = self.__get_bot_users()
|
userids = self.__get_bot_users()
|
||||||
payload_data = {
|
payload_data = {
|
||||||
@@ -169,7 +169,7 @@ class SynologyChat:
|
|||||||
caption = f"{caption}\n[查看详情]({link})"
|
caption = f"{caption}\n[查看详情]({link})"
|
||||||
|
|
||||||
if userid:
|
if userid:
|
||||||
userids = [int(userid) if str(userid).isdigit() else userid]
|
userids = [int(userid)]
|
||||||
else:
|
else:
|
||||||
userids = self.__get_bot_users()
|
userids = self.__get_bot_users()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user