mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-11-10 06:54:45 +00:00
parent
6819aaf143
commit
c2f35f4cb2
@ -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():
|
||||||
|
@ -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)
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user