|
left_status = (100 if status_tmp == 10 else (status_tmp * 10 + 5 if status_tmp <= 10 else -1)) |
I believe the 2nd comparison should be simply status_tmp <10 because you check for ==10 before.
It doesn't harm, but confuses the reading of the code.
Thanks for this, very interesting!
AirStatus/main.py
Line 90 in db9de00
I believe the 2nd comparison should be simply
status_tmp <10because you check for==10before.It doesn't harm, but confuses the reading of the code.
Thanks for this, very interesting!