Skip to content

Commit

Permalink
Don't assign an archetype of NULL.
Browse files Browse the repository at this point in the history
It's a no-op at this stage AND it breaks storing in deck_archetype_change.
  • Loading branch information
bakert committed Feb 18, 2020
1 parent 4c67742 commit 69d7026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decksite/scrapers/gatherling.py
Expand Up @@ -104,7 +104,7 @@ def add_decks(dt: datetime.datetime, competition_id: int, final: Dict[str, int],
def guess_archetypes(ds: List[deck.Deck]) -> None:
deck.calculate_similar_decks(ds)
for d in ds:
if d.similar_decks:
if d.similar_decks and d.similar_decks[0].archetype_id is not None:
archetype.assign(d.id, d.similar_decks[0].archetype_id, None, False)

def rankings(soup: BeautifulSoup) -> List[str]:
Expand Down

0 comments on commit 69d7026

Please sign in to comment.