From 178a97f3c2a3333ca59e1b1772e6e705dbf8662f Mon Sep 17 00:00:00 2001 From: Sein Coray Date: Wed, 31 Oct 2018 14:11:07 +0100 Subject: [PATCH] Changed variable name for file --- htpserver/HTService.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htpserver/HTService.py b/htpserver/HTService.py index 894e965..134d9da 100644 --- a/htpserver/HTService.py +++ b/htpserver/HTService.py @@ -46,7 +46,7 @@ def run(self): logging.info("Retrieved " + str(len(entries)) + " file download entries.") for file_download in entries: - file = self.database.get_file(file_download['fileId']) + db_file = self.database.get_file(file_download['fileId']) # Build command # ./uftp -z -I -Ctfmcc / -R @@ -59,7 +59,7 @@ def run(self): cmd += "-R " + str(self.config.get_value('multicastTranserRate')) + ' ' else: cmd += "-Ctfmcc " # flow-control enabled (default) - cmd += self.working_dir + "/../../files/" + file['filename'] + cmd += self.working_dir + "/../../files/" + db_file['filename'] logging.info("CALL: " + cmd) output = [] try: @@ -82,5 +82,5 @@ def run(self): # TODO: maybe this checks need to be extended to improve checking for errors status = -1 - self.database.update_entry(status, file['fileId']) + self.database.update_entry(status, db_file['fileId']) time.sleep(5)