From 26d9e2c3a35cada296de51c0b13b2dfd1bf40210 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 30 Apr 2020 01:30:14 -0700 Subject: [PATCH] Remove leftover print statements --- amanuensis/lexicon/gameloop.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/amanuensis/lexicon/gameloop.py b/amanuensis/lexicon/gameloop.py index b7cb48d..5d4d9c0 100644 --- a/amanuensis/lexicon/gameloop.py +++ b/amanuensis/lexicon/gameloop.py @@ -195,11 +195,9 @@ def sort_by_index_spec(articles, index_specs, key=None): index for pri in sorted(index_by_pri.keys(), reverse=True) for index in index_by_pri[pri]] - print(str(articles)[:200]) articles_titlesorted = sorted( articles, key=lambda a: titlesort(key(a))) - print(str(articles_titlesorted)[:200]) indexed = OrderedDict() for index in index_list_order: indexed[index.pattern] = [] @@ -226,7 +224,6 @@ def attempt_publish(lexicon: LexiconModel) -> bool: # publish policy characters = [ cid for cid, char in lexicon.cfg.character.items() if char.player] - print(characters) has_approved = {cid: 0 for cid in characters} has_ready = {cid: 0 for cid in characters} for draft in drafts.values(): @@ -237,8 +234,6 @@ def attempt_publish(lexicon: LexiconModel) -> bool: # If quorum isn't defined, require all characters to have an article quorum = lexicon.cfg.publish.quorum or len(characters) if sum(has_approved.values()) < quorum: - print(sum(has_approved.values())) - print(quorum) lexicon.log(f'Publish failed: no quorum') return False # If articles are up for review, check if this blocks publish