diff --git a/bin/import_dir.py b/bin/import_dir.py index 4cf308eb..331573d2 100755 --- a/bin/import_dir.py +++ b/bin/import_dir.py @@ -18,10 +18,11 @@ if __name__ == "__main__": context = zmq.Context() socket = context.socket(zmq.PUB) socket.bind("tcp://*:{}".format(args.port)) + time.sleep(1) #Important, avoid loosing the 1 message for dirname, dirnames, filenames in os.walk(args.directory): for filename in filenames: messagedata = open(os.path.join(dirname, filename)).read() print(os.path.join(dirname, filename)) socket.send('{} {} {}'.format(args.channel, filename, base64.b64encode(messagedata))) - time.sleep(.1) + time.sleep(.2) diff --git a/var/www/templates/header.html b/var/www/templates/header.html index c4232f92..34682d07 100644 --- a/var/www/templates/header.html +++ b/var/www/templates/header.html @@ -25,7 +25,7 @@ -