PEP8 formatting
This commit is contained in:
@@ -380,7 +380,7 @@ class PillarServer(Eve):
|
|||||||
if doc_name:
|
if doc_name:
|
||||||
description = '%s "%s" was deleted.' % (node_type, doc_name)
|
description = '%s "%s" was deleted.' % (node_type, doc_name)
|
||||||
else:
|
else:
|
||||||
description = 'This %s was deleted.' % (node_type, )
|
description = 'This %s was deleted.' % (node_type,)
|
||||||
else:
|
else:
|
||||||
if doc_name:
|
if doc_name:
|
||||||
description = '"%s" was deleted.' % doc_name
|
description = '"%s" was deleted.' % doc_name
|
||||||
@@ -561,7 +561,7 @@ class PillarServer(Eve):
|
|||||||
|
|
||||||
pprint(links)
|
pprint(links)
|
||||||
|
|
||||||
def db(self, collection_name: str=None) \
|
def db(self, collection_name: str = None) \
|
||||||
-> typing.Union[pymongo.collection.Collection, pymongo.database.Database]:
|
-> typing.Union[pymongo.collection.Collection, pymongo.database.Database]:
|
||||||
"""Returns the MongoDB database, or the collection (if given)"""
|
"""Returns the MongoDB database, or the collection (if given)"""
|
||||||
|
|
||||||
|
@@ -3,8 +3,6 @@
|
|||||||
Run commands with 'flask <command>'
|
Run commands with 'flask <command>'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@@ -789,6 +787,7 @@ def create_blog(proj_url):
|
|||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
manager.add_command("maintenance", manager_maintenance)
|
manager.add_command("maintenance", manager_maintenance)
|
||||||
manager.add_command("setup", manager_setup)
|
manager.add_command("setup", manager_setup)
|
||||||
manager.add_command("operations", manager_operations)
|
manager.add_command("operations", manager_operations)
|
||||||
|
Reference in New Issue
Block a user