Removed obsolete string formatting operations

pull/38/head
Konstantin Gründger 2016-02-03 23:22:04 +01:00
rodzic 018ea8c549
commit 528bcd8e91
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -21,7 +21,7 @@ def compute():
print("Compute takeoffs and landings...")
result = compute_takeoff_and_landing.delay()
counter = result.get()
print("New/recalculated takeoffs/landings: {}"format(counter))
print("New/recalculated takeoffs/landings: {}".format(counter))
@manager.command
@ -140,7 +140,7 @@ def show(airport_name, latitude, longitude, altitude):
.outerjoin(Device, union_query.c.address == Device.address) \
.order_by(union_query.c.reftime)
print('--- Logbook (%s) ---' % airport_name)
print('--- Logbook ({}) ---'.format(airport_name))
def none_datetime_replacer(datetime_object):
return '--:--:--' if datetime_object is None else datetime_object.time()