Skip to content

Commit

Permalink
Merge pull request #608 from NBISweden/sftp-uid
Browse files Browse the repository at this point in the history
Fix uid for new sftp user
  • Loading branch information
viklund committed Nov 26, 2019
2 parents 0df2858 + b324162 commit a1d91e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def get_next_free_uid() -> int:
default = 10000
next_uid = default
try:
current_max_uid = SFTPUser.select(fn.MAX(SFTPUser.user_uid)).get().user_uid
current_max_uid = SFTPUser.select(fn.MAX(SFTPUser.user_uid)).get().max
if current_max_uid:
next_uid = current_max_uid+1
except SFTPUser.DoesNotExist:
Expand Down

0 comments on commit a1d91e1

Please sign in to comment.