~fkfd/picross

ff3f12f0edae0bbaf9aa5b290fc005ef03ea1f44 — Zach DeCook 3 years ago 9702d7a master
TOFU: Create file if it didn't exist
1 files changed, 2 insertions(+), 0 deletions(-)

M picross/tofu.py
M picross/tofu.py => picross/tofu.py +2 -0
@@ 36,6 36,8 @@ class TofuDatabase:
    def read(self) -> list:
        """Reads all TOFU entries from DB
        """
        if not self.db_file.exists():
            open(self.db_file, 'a').close()
        with open(self.db_file) as f:
            reader = csv.reader(f)
            tofu_entries = [