kopia lustrzana https://github.com/glidernet/ogn-python
Fix pep8 again.
rodzic
ec80b90863
commit
57f51ec111
|
@ -1,15 +1,14 @@
|
||||||
from ogn.model import Base
|
from ogn.model import Base
|
||||||
|
from ogn.collect.fetchddb import update_ddb_from_ogn, update_ddb_from_file
|
||||||
|
from ogn.commands.dbutils import engine
|
||||||
|
|
||||||
from manager import Manager
|
from manager import Manager
|
||||||
manager = Manager()
|
manager = Manager()
|
||||||
|
|
||||||
from ogn.collect.fetchddb import update_ddb_from_ogn, update_ddb_from_file
|
|
||||||
|
|
||||||
|
|
||||||
@manager.command
|
@manager.command
|
||||||
def init():
|
def init():
|
||||||
"""Initialize the database."""
|
"""Initialize the database."""
|
||||||
from ogn.commands.dbutils import engine
|
|
||||||
Base.metadata.create_all(engine)
|
Base.metadata.create_all(engine)
|
||||||
print("Done.")
|
print("Done.")
|
||||||
|
|
||||||
|
|
|
@ -3,15 +3,16 @@ import socket
|
||||||
from ogn.gateway import ognGateway
|
from ogn.gateway import ognGateway
|
||||||
from ogn.logger import logger
|
from ogn.logger import logger
|
||||||
|
|
||||||
DB_URI = 'sqlite:///beacons.db'
|
|
||||||
|
|
||||||
from manager import Manager
|
from manager import Manager
|
||||||
manager = Manager()
|
manager = Manager()
|
||||||
|
|
||||||
|
DB_URI = 'sqlite:///beacons.db'
|
||||||
|
|
||||||
|
|
||||||
@manager.command
|
@manager.command
|
||||||
def run(aprs_user="anon-dev"):
|
def run(aprs_user="anon-dev"):
|
||||||
"""Run the aprs client."""
|
"""Run the aprs client."""
|
||||||
|
|
||||||
if len(aprs_user) < 3 or len(aprs_user) > 9:
|
if len(aprs_user) < 3 or len(aprs_user) > 9:
|
||||||
print("aprs_user must be a string of 3-9 characters")
|
print("aprs_user must be a string of 3-9 characters")
|
||||||
return
|
return
|
||||||
|
|
Ładowanie…
Reference in New Issue