Reformat using black
This commit is contained in:
parent
efee4ad081
commit
a87fb49918
221 changed files with 19127 additions and 7310 deletions
|
@ -1,6 +1,6 @@
|
|||
from django.conf import settings
|
||||
|
||||
__all__ = ['last', 'post']
|
||||
__all__ = ["last", "post"]
|
||||
|
||||
if not settings.EVENT_DAEMON_USE:
|
||||
real = False
|
||||
|
@ -10,9 +10,12 @@ if not settings.EVENT_DAEMON_USE:
|
|||
|
||||
def last():
|
||||
return 0
|
||||
elif hasattr(settings, 'EVENT_DAEMON_AMQP'):
|
||||
|
||||
elif hasattr(settings, "EVENT_DAEMON_AMQP"):
|
||||
from .event_poster_amqp import last, post
|
||||
|
||||
real = True
|
||||
else:
|
||||
from .event_poster_ws import last, post
|
||||
|
||||
real = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue