release: v0.2.0 #28
+3
-1
@@ -2,6 +2,7 @@ from typing import Any
|
|||||||
from random import randint
|
from random import randint
|
||||||
from os import system, name
|
from os import system, name
|
||||||
import re
|
import re
|
||||||
|
from importlib.resources import files
|
||||||
import csv
|
import csv
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
@@ -16,7 +17,8 @@ aggr: dict[str, int] = {}
|
|||||||
final_score: int = 10000
|
final_score: int = 10000
|
||||||
|
|
||||||
with open("hodnoty.csv", "r") as csv_file:
|
with open("hodnoty.csv", "r") as csv_file:
|
||||||
csv_reader = csv.reader(csv_file)
|
csv_text = files(__package__).joinpath("hodnoty.csv").read_text(encoding="utf-8")
|
||||||
|
csv_reader = csv.reader(csv_text.splitlines())
|
||||||
|
|
||||||
for row in csv_reader:
|
for row in csv_reader:
|
||||||
key = str(row[0])
|
key = str(row[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user