forked from kernelci/kernelci-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api.main: only look for duplicate user when required
Only look up if another user already exists if the update contains a username and it's not already the same one as the initial user. This avoids unnecessary errors when updating a user entry with the same username and avoids database lookups with a username set to None. Signed-off-by: Guillaume Tucker <[email protected]>
- Loading branch information
1 parent
00b2703
commit a84d46a
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters