Skip to content

Commit

Permalink
fix: address username loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrutchf committed May 24, 2024
1 parent 2370081 commit ad3466c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git_annex_remote_synology/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ def _get_username(self) -> str:

if username:
self.username = username
elif self._username:
return self._username
else:
result = self._cursor.execute(
"SELECT username FROM users WHERE hostname = ?", (self.hostname,)
Expand Down

0 comments on commit ad3466c

Please sign in to comment.