Commits

Ada Young  committed f80e8eb

Removed duplicated from DisplayOrphans()

  • Participants
  • Parent commits 5afe02c

Comments (0)

Files changed (1)

         areaid = results[0][0]
 
     warp_pairs = []
-    orphan_pairs = []
+    orphan_pairs = {}
     endpoints = EndPoints(areaname)
     for source, destination, source_areaid in endpoints:
         warp_pairs.append((source, destination))
     results = cursor.fetchall()
     for i in results:
         if not i in warp_pairs:
-            orphan_pairs.append(i)
+            orphan_pairs[i] = ""
+    orphan_pairs = orphan_pairs.keys()
     if len(orphan_pairs) > 0:
         Note("The following warps lead to places which are not part of the database yet:")
         Note("--------------------------------------------------------------------------")