17 lines
388 B
Python
17 lines
388 B
Python
#!/usr/bin/python3
|
|
import time, toml
|
|
|
|
global starttime, apiRequests, apiFailedRequests, outsideApiHits, config, version, apiVersion
|
|
|
|
#def init():
|
|
# starttime = int(time.time())
|
|
|
|
#def notImplemented(data):
|
|
# return 501, f"not recognised/implemented: {data[0]}", []
|
|
|
|
config = toml.load("config.toml")
|
|
version = "0.0.1"
|
|
apiVersion = "1"
|
|
|
|
def getUptime():
|
|
return int(time.time()) - starttime |