Skip to content

Commit

Permalink
ready for 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Apr 24, 2018
1 parent 8ec26ec commit 1d4d6bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions seafadm
Original file line number Diff line number Diff line change
Expand Up @@ -560,13 +560,13 @@ def GetLinks():
links = dict()
# now verbose mode with bs4 Tags necessary for URL
for d in GetData("/sys/publinkadmin/", section="right-panel", mode="verbose"):
link = Link(Name=d[0][0], Owner=d[1][0], Creation=d[2].time["datetime"], Count=d[3][0])
link = Link(Name=d[0][0], Owner=d[1][0], Creation=d[3].time["datetime"], Count=d[4][0])
if link.Name.startswith("/"):
link.Type = "directory"
else:
link.Type = "file"
if isinstance(d[4], bs4.element.Tag):
link.ID = d[4].a["data-token"].split("=")[-1]
if isinstance(d[5], bs4.element.Tag):
link.ID = d[5].a["data-token"].split("=")[-1]
link.URL = "/".join((SEAFILE_URL, link.Type[0], link.ID))
links[link.ID] = link
return links
Expand Down

0 comments on commit 1d4d6bc

Please sign in to comment.