Skip to content

Commit 228752a

Browse files
committed
Fix another smart sort bug
Fixed another smart sort bug. This bug caused a credential used within the last 30 seconds not to be displayed at first.
1 parent 8c3da66 commit 228752a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qubes-keepass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ def get_last(self) -> str:
195195
if self.timestamps[uuid_hash] > self.timestamps[best]:
196196
best = uuid_hash
197197

198-
if (int(time.time()) - self.timestamps[uuid_hash]) <= 30:
199-
return uuid_hash
198+
if (int(time.time()) - self.timestamps[best]) <= 30:
199+
return best
200200

201201
return ''
202202

0 commit comments

Comments
 (0)