1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Removed default URI keys from pages where they aren't relevant

This commit is contained in:
Krateng 2019-05-14 18:06:34 +02:00
parent 53778ce644
commit 3b0b9eaa78
2 changed files with 4 additions and 0 deletions

View File

@ -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):

View File

@ -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 = ""