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:
parent
53778ce644
commit
3b0b9eaa78
@ -80,6 +80,7 @@ class MalformedJSONException(Exception): pass
|
|||||||
|
|
||||||
|
|
||||||
class APIHandler:
|
class APIHandler:
|
||||||
|
# make these classes singletons
|
||||||
_instance = None
|
_instance = None
|
||||||
def __new__(cls, *args, **kwargs):
|
def __new__(cls, *args, **kwargs):
|
||||||
if not isinstance(cls._instance, cls):
|
if not isinstance(cls._instance, cls):
|
||||||
|
@ -483,6 +483,9 @@ def module_filterselection(keys,time=True,delimit=False):
|
|||||||
|
|
||||||
filterkeys, timekeys, delimitkeys, extrakeys = uri_to_internal(keys)
|
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 = ""
|
html = ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user