mirror of
https://github.com/aclist/dztui.git
synced 2026-08-30 11:47:17 +02:00
Compare commits
No commits in common. "e92df8c062b7cfd53715ce3deb15143092b0b292" and "90c7d9f73e6aded977c054b522ba6baaecf739fd" have entirely different histories.
e92df8c062
...
90c7d9f73e
@ -55,11 +55,8 @@ class ConfigManager:
|
|||||||
self.update_config(Preferences.IP_LIST, ips)
|
self.update_config(Preferences.IP_LIST, ips)
|
||||||
|
|
||||||
def update_history_file(self, fqip: str) -> None:
|
def update_history_file(self, fqip: str) -> None:
|
||||||
try:
|
with open(self.prefs.paths.history, "r") as f:
|
||||||
with open(self.prefs.paths.history, "r") as f:
|
ips = [line.rstrip() for line in f.readlines()]
|
||||||
ips = [line.rstrip() for line in f.readlines()]
|
|
||||||
except FileNotFoundError:
|
|
||||||
ips = []
|
|
||||||
|
|
||||||
seen = set()
|
seen = set()
|
||||||
ips.append(fqip)
|
ips.append(fqip)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user