Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeauchesne committed Sep 10, 2020
1 parent c749c6b commit 34d0c22
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions campbot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
campbot clean <url_or_file> <langs> [--login=<login>] [--password=<password>] [--delay=<seconds>] [--batch] [--bbcode]
campbot contribs [--out=<filename>] [--starts=<start_date>] [--ends=<end_date>] [--delay=<seconds>]
campbot export <url> [--out=<filename>] [--delay=<seconds>]
campbot check_voters <url> [--login=<login>] [--password=<password>]
Options:
Expand All @@ -30,7 +29,6 @@
contribs Export all contribution in a CSV file. <start_date> and <end_date> are like 2018-05-12
export Export all documents in a CSV file.
<url> is like https://www.camptocamp.org/outings#u=2, or, simplier, outings#u=2
check_voters Compile forum poll with only members of "contributeurs" group
"""

Expand Down Expand Up @@ -94,9 +92,6 @@ def main(args):
elif args["export"]:
get_campbot(args).export(args["<url>"], args["--out"])

elif args["check_voters"]:
get_campbot(args).check_voters(args["<url>"])


if __name__ == "__main__":
main_entry_point()
2 changes: 0 additions & 2 deletions tests/test_miscs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def test_post_message(fix_requests):
def test_main_entry_point(fix_requests, ids_files):
from campbot.__main__ import main

main(get_main_args("check_voters", {"<url>": MESSAGE_URL}))
main(get_main_args("contribs"))
main(get_main_args("export"))
main(get_main_args("check_rc"))
Expand Down Expand Up @@ -212,7 +211,6 @@ def get_main_args(action, others=None):
# noinspection PyDictCreation
result = {
"check_rc": False,
"check_voters": False,
"contribs": False,
"export": False,
"clean": False,
Expand Down

0 comments on commit 34d0c22

Please sign in to comment.