Sfoglia il codice sorgente

normalize path ending before adding to the DB

pull/193/head
Sven Taute 11 anni fa
parent
commit
4685d86a17
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      bin/autojump

+ 1
- 0
bin/autojump Vedi File

@ -89,6 +89,7 @@ class Database:
"""
Increase weight of existing paths or initialize new ones to 10.
"""
path = path.rstrip(os.sep)
if path not in self.data:
self.data[path] = increment
else:

Caricamento…
Annulla
Salva