From 3b0b9eaa782fbee85497d4847b345a18dd48f7e6 Mon Sep 17 00:00:00 2001 From: Krateng Date: Tue, 14 May 2019 18:06:34 +0200 Subject: [PATCH] Removed default URI keys from pages where they aren't relevant --- compliant_api.py | 1 + htmlmodules.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/compliant_api.py b/compliant_api.py index 8e97dbe..26ab5a0 100644 --- a/compliant_api.py +++ b/compliant_api.py @@ -80,6 +80,7 @@ class MalformedJSONException(Exception): pass class APIHandler: + # make these classes singletons _instance = None def __new__(cls, *args, **kwargs): if not isinstance(cls._instance, cls): diff --git a/htmlmodules.py b/htmlmodules.py index a6d79ff..5f27f07 100644 --- a/htmlmodules.py +++ b/htmlmodules.py @@ -483,6 +483,9 @@ def module_filterselection(keys,time=True,delimit=False): filterkeys, timekeys, delimitkeys, extrakeys = uri_to_internal(keys) + # drop keys that are not relevant so they don't clutter the URI + if not time: timekeys = {} + if not delimit: delimitkeys = {} html = ""