From bf8b8dbdebaf4ee41a687cdcf958bc20a4a53926 Mon Sep 17 00:00:00 2001 From: mkaay Date: Wed, 11 Aug 2010 23:37:33 +0200 Subject: ShareonlineBiz free+premium, DDLMusicOrg working, SerienjunkiesOrg fix, FileDatabase fix, other fixes --- pyLoadCore.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 644ccf925..9bce296a5 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -543,13 +543,15 @@ class ServerMethods(): self.add_package(th.name, [th.name], 1) - def get_log(self): + def get_log(self, offset=0): filename = join(self.core.config['log']['log_folder'], 'log.txt') try: fh = open(filename, "r") lines = fh.readlines() fh.close() - return lines + if offset >= len(lines): + return None + return lines[offset:] except: return ('No log available',) -- cgit v1.2.3