Skip to content

Commit

Permalink
Merge b324162 into 0df2858
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Nov 26, 2019
2 parents 0df2858 + b324162 commit bb1cf1b
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 bb1cf1b

Please sign in to comment.