diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index 0fe86941..2d3aa196 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -97,8 +97,7 @@ def event_stream_getImportantPasteByModule(module_name): data["date"] = curr_date data["char_to_display"] = max_preview_modal data["finished"] = True if index == len(all_pastes_list) else False - time.sleep(0.002) #So that the front end client is not flooded by data - yield 'data: %s\n\n' % json.dumps(data) + yield 'retry: 100000\ndata: %s\n\n' % json.dumps(data) #retry to avoid reconnection of the browser def get_queues(r): diff --git a/var/www/templates/important_paste_by_module.html b/var/www/templates/important_paste_by_module.html index 61e840d9..535925a1 100644 --- a/var/www/templates/important_paste_by_module.html +++ b/var/www/templates/important_paste_by_module.html @@ -1,4 +1,3 @@ - @@ -24,28 +23,50 @@

+
+ +
+
+ + +

+