1. Alan Franzoni
  2. hatta-dev

Commits

Matteo Bertini  committed d11990d

Avoid listing duplicated backlinks to the same target

  • Participants
  • Parent commits 527aa67
  • Branches default

Comments (0)

Files changed (1)

File hatta.py

View file
     def page_backlinks(self, title):
         con = self.con # sqlite3.connect(self.filename)
         try:
-            sql = 'select src from links where target=? order by number;'
+            sql = 'select distinct(src) from links where target=? order by number;'
             for (ident,) in con.execute(sql, (title,)):
                 yield self.id_title(ident, con)
         finally: