From 6a54e520dc5d24f2cf6de27b81d7ed36ec78e471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Gru=CC=88ndger?= Date: Sun, 15 Nov 2015 11:54:01 +0100 Subject: [PATCH] Typos --- ogn/commands/showreceiver.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ogn/commands/showreceiver.py b/ogn/commands/showreceiver.py index 4928f82..8b78e53 100755 --- a/ogn/commands/showreceiver.py +++ b/ogn/commands/showreceiver.py @@ -14,6 +14,7 @@ receiver_messages_per_24h = 24*60 / 5 from manager import Manager manager = Manager() + @manager.command def list(): """Show a list of all receivers.""" @@ -33,7 +34,7 @@ def list(): @manager.command def software_stats(): - """Show some statistics of receiver sotware.""" + """Show some statistics of receiver software.""" sq = session.query(ReceiverBeacon.name, func.max(ReceiverBeacon.timestamp).label('lastseen')).\ filter(ReceiverBeacon.timestamp > back_24h).\ group_by(ReceiverBeacon.name).\ @@ -44,7 +45,7 @@ def software_stats(): group_by(ReceiverBeacon.version).\ order_by(ReceiverBeacon.version) - print('\n--- Versions ---') + print('--- Versions ---') for [version, count] in versions.all(): print('%5s: %s' % (version, count)) @@ -62,6 +63,6 @@ def hardware_stats(): group_by(ReceiverBeacon.platform).\ order_by(ReceiverBeacon.platform) - print('\n--- Platforms ---') + print('--- Platforms ---') for [platform, count] in platforms.all(): print('%7s: %s' % (platform, count))