kopia lustrzana https://github.com/glidernet/ogn-python
Removed obsolete string formatting operations
rodzic
018ea8c549
commit
528bcd8e91
|
@ -21,7 +21,7 @@ def compute():
|
||||||
print("Compute takeoffs and landings...")
|
print("Compute takeoffs and landings...")
|
||||||
result = compute_takeoff_and_landing.delay()
|
result = compute_takeoff_and_landing.delay()
|
||||||
counter = result.get()
|
counter = result.get()
|
||||||
print("New/recalculated takeoffs/landings: {}"format(counter))
|
print("New/recalculated takeoffs/landings: {}".format(counter))
|
||||||
|
|
||||||
|
|
||||||
@manager.command
|
@manager.command
|
||||||
|
@ -140,7 +140,7 @@ def show(airport_name, latitude, longitude, altitude):
|
||||||
.outerjoin(Device, union_query.c.address == Device.address) \
|
.outerjoin(Device, union_query.c.address == Device.address) \
|
||||||
.order_by(union_query.c.reftime)
|
.order_by(union_query.c.reftime)
|
||||||
|
|
||||||
print('--- Logbook (%s) ---' % airport_name)
|
print('--- Logbook ({}) ---'.format(airport_name))
|
||||||
|
|
||||||
def none_datetime_replacer(datetime_object):
|
def none_datetime_replacer(datetime_object):
|
||||||
return '--:--:--' if datetime_object is None else datetime_object.time()
|
return '--:--:--' if datetime_object is None else datetime_object.time()
|
||||||
|
|
Ładowanie…
Reference in New Issue