Skip to content

Commit

Permalink
FIX: Authentication does not work for user without a username
Browse files Browse the repository at this point in the history
VER: 1.1.1
  • Loading branch information
toddrob99 committed Oct 21, 2020
1 parent 0f6916f commit c4181b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions searcharr.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import sonarr
import settings

__version__ = "1.1.0"
__version__ = "1.1.1"

DBPATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data")
DBFILE = "searcharr.db"
Expand Down Expand Up @@ -74,7 +74,7 @@ def cmd_start(self, update, context):
if password == settings.searcharr_password:
self._add_user(
id=update.message.from_user.id,
username=update.message.from_user.username,
username=str(update.message.from_user.username),
)
update.message.reply_text(
"Authentication successful. Use /help for commands."
Expand Down Expand Up @@ -103,7 +103,7 @@ def cmd_movie(self, update, context):
# self.conversations.update({cid: {"cid": cid, "type": "movie", "results": results}})
self._create_conversation(
id=cid,
username=update.message.from_user.username,
username=str(update.message.from_user.username),
kind="movie",
results=results,
)
Expand Down Expand Up @@ -143,7 +143,7 @@ def cmd_series(self, update, context):
# self.conversations.update({cid: {"cid": cid, "type": "series", "results": results}})
self._create_conversation(
id=cid,
username=update.message.from_user.username,
username=str(update.message.from_user.username),
kind="series",
results=results,
)
Expand Down

0 comments on commit c4181b9

Please sign in to comment.