]> git.sthu.org Git - oe1archive.git/commitdiff
Killing the delay when generating 30 day view
authorStefan Huber <shuber@sthu.org>
Fri, 2 Jan 2026 19:44:44 +0000 (20:44 +0100)
committerStefan Huber <shuber@sthu.org>
Fri, 2 Jan 2026 19:44:44 +0000 (20:44 +0100)
Delays for flow control are typically wrong. It should be something done
by the server, instead.

oe1archive

index 1e1c3ecb418cb302cd9a6860e517c3a23ab86597..141c68099e879114049ba19ff5e757830a1ab56c 100755 (executable)
@@ -63,7 +63,6 @@ import re
 import os
 import requests
 from datetime import timedelta
-import time
 
 
 # Add audioapi as constant:
@@ -185,9 +184,6 @@ class Archive:
                         }
                         extended_json.append(guide_entry)
 
-                    # Small delay to avoid overwhelming the API
-                    time.sleep(0.1)
-
                 numdays = len(extended_json)
                 print(f"Archive data loaded: {numdays} days total",
                       file=sys.stderr)