fixed history allowing adding the same clan twice

This commit is contained in:
Qubasa
2023-12-14 18:54:00 +01:00
parent beae9e03dc
commit 4c2ff0d6af

View File

@@ -58,9 +58,7 @@ def add_history(uri: ClanURI) -> list[HistoryEntry]:
found = True
entry.last_used = datetime.datetime.now().isoformat()
if found:
break
if not found:
flake = inspect_flake(path, machine)
flake.flake_url = str(flake.flake_url)
history = HistoryEntry(