jhauberg / cards.py

Generate Print-and-Play cards for your board games
MIT License
35 stars 7 forks source link

"Incorrect" warning count #120

Closed jhauberg closed 8 years ago

jhauberg commented 8 years ago

The warning count appears incorrect in some cases (though it actually isn't).

For example, a card template with an embedded style containing a template field could produce the same warning 8 times, but only show it once. The final output would then be something like:

Generating cards from 1 datasource:
['cards.csv']

[-] [cards.csv] Card backs will not be generated since the '@template-back' column has not been set.
[?] [templates/card.html] The template embeds a style that contains fields that might not be resolved properly: ['art']

Finished in 0.029254 seconds

Generated 16 (8 unique) cards on 2 pages (0 errors, 8 warnings).

It should only show 2 warnings, since that is what you see. Similarly, if verbosity is not toggled, it still shouldn't show more than what it would have shown.