- added parameter --all to include also already registered instances
)
parser.set_defaults(command=commands.fetch_fedilist)
parser.add_argument("--software", help="Name of software, e.g. 'lemmy'")
+ parser.add_argument("--all", action="store_true", help="Include also already existing instances, otherwise only new are checked")
logger.debug("EXIT!")
elif not utils.is_domain_wanted(domain):
logger.warning("domain='%s' is not wanted - SKIPPED!", domain)
continue
+ elif args.all is None or not args.all and instances.is_registered(domain):
+ logger.debug("domain='%s' is already registered, --all not specified: args.all[]='%s'", type(args.all))
+ continue
elif instances.is_recent(domain):
logger.debug("domain='%s' has been recently crawled - SKIPPED!", domain)
continue