forked from privacyidea/privacyidea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1123/optimize performance (privacyidea#1139)
* Avoid querying the database at all We can avoid querying the database for the tokentype if we have no desting serial number. We would not get a tokentype anyways! Working on privacyidea#1123 * If serial is None, the tokentype is None anyway! * move logic to lib function * Failsafe if serial is None * always return a string as tokentype * Add unit tests
- Loading branch information
1 parent
83e1477
commit 457f3d8
Showing
3 changed files
with
13 additions
and
2 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
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
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