superscript v 0.9.2

This commit is contained in:
Arthur Lu 2021-08-13 21:57:03 +00:00
parent 6364746d7a
commit e559ced751
3 changed files with 7 additions and 4 deletions

View File

@ -17,7 +17,7 @@ stderr = sys.stderr
def log(target, level, message, code = 0): def log(target, level, message, code = 0):
message = time.ctime() + empty_delim + str(level) + l_brack + f"{code:04}" + r_brack + empty_delim + soft_divided_delim + empty_delim + message message = time.ctime() + empty_delim + str(level) + l_brack + f"{code:+05}" + r_brack + empty_delim + soft_divided_delim + empty_delim + message
print(message, file = target) print(message, file = target)
def clear(): def clear():

View File

@ -309,7 +309,7 @@ def restart(pid_path):
start(pid_path) start(pid_path)
if __name__ == "__main__": if __name__ == "__main__":
pid_path = "/var/run/tra-daemon.pid" pid_path = "tra-daemon.pid"
if len(sys.argv) == 2: if len(sys.argv) == 2:
if 'start' == sys.argv[1]: if 'start' == sys.argv[1]:
start(pid_path) start(pid_path)

View File

@ -3,10 +3,13 @@
# Notes: # Notes:
# setup: # setup:
__version__ = "0.9.1" __version__ = "0.9.2"
# changelog should be viewed using print(analysis.__changelog__) # changelog should be viewed using print(analysis.__changelog__)
__changelog__ = """changelog: __changelog__ = """changelog:
0.9.2:
- removed unessasary imports from data
- minor changes to interface
0.9.1: 0.9.1:
- fixed bugs in configuration item loading exception handling - fixed bugs in configuration item loading exception handling
0.9.0: 0.9.0:
@ -138,7 +141,7 @@ import warnings
import sys import sys
from interface import splash, log, ERR, INF, stdout, stderr from interface import splash, log, ERR, INF, stdout, stderr
from data import get_previous_time, set_current_time, load_match, push_match, load_metric, push_metric, load_pit, push_pit from data import get_previous_time, set_current_time, load_match, push_match, load_pit, push_pit
from processing import matchloop, metricloop, pitloop from processing import matchloop, metricloop, pitloop
config_path = "config.json" config_path = "config.json"