fix plugins
This commit is contained in:
parent
3b5e66af40
commit
5c29dfed8d
|
@ -39,6 +39,7 @@ from feed2toot.lock import LockFile
|
|||
from feed2toot.message import build_message
|
||||
from feed2toot.message import send_message_dry_run
|
||||
from feed2toot.message import send_message
|
||||
from feed2toot.plugins import activate_plugins
|
||||
from feed2toot.removeduplicates import RemoveDuplicates
|
||||
from feed2toot.rss import populate_rss
|
||||
from feed2toot.sortentries import sort_entries
|
||||
|
@ -122,7 +123,7 @@ class Main:
|
|||
send_message(config, clioptions, options, entrytosend, finaltweet, cache, rss)
|
||||
# plugins
|
||||
if plugins and entrytosend:
|
||||
activate_plugins(plugins)
|
||||
activate_plugins(plugins, finaltweet)
|
||||
# do not forget to close cache (shelf object)
|
||||
cache.close()
|
||||
# release the lock file
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# standard libraires imports
|
||||
import importlib
|
||||
|
||||
def activate_plugins(entrytosend):
|
||||
def activate_plugins(plugins, finaltweet):
|
||||
'''activate plugins'''
|
||||
for plugin in plugins:
|
||||
capitalizedplugin = plugin.title()
|
||||
|
|
Loading…
Reference in a new issue