PEP8 formatting

This commit is contained in:
2017-05-18 10:00:06 +02:00
parent 19d9684a67
commit 47b81055fd
2 changed files with 13 additions and 14 deletions

View File

@@ -380,7 +380,7 @@ class PillarServer(Eve):
if doc_name:
description = '%s "%s" was deleted.' % (node_type, doc_name)
else:
description = 'This %s was deleted.' % (node_type, )
description = 'This %s was deleted.' % (node_type,)
else:
if doc_name:
description = '"%s" was deleted.' % doc_name
@@ -561,7 +561,7 @@ class PillarServer(Eve):
pprint(links)
def db(self, collection_name: str=None) \
def db(self, collection_name: str = None) \
-> typing.Union[pymongo.collection.Collection, pymongo.database.Database]:
"""Returns the MongoDB database, or the collection (if given)"""

View File

@@ -3,8 +3,6 @@
Run commands with 'flask <command>'
"""
import copy
import logging
@@ -789,6 +787,7 @@ def create_blog(proj_url):
return 0
manager.add_command("maintenance", manager_maintenance)
manager.add_command("setup", manager_setup)
manager.add_command("operations", manager_operations)