added note and changed test again
This commit is contained in:
parent
ca3ba5b684
commit
eb9f12ca42
2 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
# TODO: maybe put this is a different script?
|
||||||
def parse_timestamp(timestamp: int, type: int):
|
def parse_timestamp(timestamp: int, type: int):
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
2
test.py
2
test.py
|
@ -7,6 +7,6 @@ result=src.services.TriMet.get_vehicles(api)
|
||||||
|
|
||||||
for vm in result['vehicles']:
|
for vm in result['vehicles']:
|
||||||
print(RGBtoANSI(
|
print(RGBtoANSI(
|
||||||
text=f"this is {bold(vm.type[1])} #{bold(vm.id)}.\n\troute #{bold(vm.import_data['routeNumber'])}, next stop: {bold(vm.sign[0])}\n\tboard: {bold(vm.sign[1])}",
|
text=f"this is {bold(vm.type[1])} #{bold(vm.id)}.\n\troute #{bold(vm.import_data['routeNumber'])}, next stop: {bold(vm.sign[0])}\n\tboard: {bold(vm.sign[1])}\n\tJSON: {bold(vm.import_data)}",
|
||||||
foregound=vm.route_color
|
foregound=vm.route_color
|
||||||
))
|
))
|
Loading…
Reference in a new issue