Skip to content

Commit

Permalink
The result is stored as max, not user_uid.
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Nov 26, 2019
1 parent 0df2858 commit b324162
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 b324162

Please sign in to comment.