MCPcopy
hub / github.com/pyload/pyload / updateLinkInfo

Method updateLinkInfo

module/database/FileDatabase.py:774–781  ·  view source on GitHub ↗

data is list of tupels (name, size, status, url)

(self, data)

Source from the content-addressed store, hash-verified

772
773 @style.queue
774 def updateLinkInfo(self, data):
775 """ data is list of tupels (name, size, status, url) """
776 self.c.executemany('UPDATE links SET name=?, size=?, status=? WHERE url=? AND status IN (1,2,3,14)', data)
777 ids = []
778 self.c.execute('SELECT id FROM links WHERE url IN (\'%s\')' % "','".join([x[3] for x in data]))
779 for r in self.c:
780 ids.append(int(r[0]))
781 return ids
782
783 @style.queue
784 def reorderPackage(self, p, position, noMove=False):

Callers 2

updateFileInfoMethod · 0.80
FileDatabase.pyFile · 0.80

Calls 3

executeMethod · 0.80
joinMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected