MCPcopy Index your code
hub / github.com/pyload/pyload / _nextFileOrder

Method _nextFileOrder

module/database/FileDatabase.py:605–611  ·  view source on GitHub ↗
(self, package)

Source from the content-addressed store, hash-verified

603
604 @style.inner
605 def _nextFileOrder(self, package):
606 self.c.execute('SELECT MAX(linkorder) FROM links WHERE package=?', (package,))
607 max = self.c.fetchone()[0]
608 if max is not None:
609 return max + 1
610 else:
611 return 0
612
613 @style.queue
614 def addLink(self, url, name, plugin, package):

Callers 2

addLinkMethod · 0.95
addLinksMethod · 0.95

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected