From 1eba891324ac11e5fb8c760c71e810836baf4234 Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Sat, 2 Jan 2021 23:49:28 +0100 Subject: [PATCH] =?UTF-8?q?Odstran=C4=9B=C5=88=20houf=20ladic=C3=ADch=20ti?= =?UTF-8?q?sk=C5=AF=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/csv.py | 1 - mo/rights.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/mo/csv.py b/mo/csv.py index af6882de..73dcb9ea 100644 --- a/mo/csv.py +++ b/mo/csv.py @@ -60,5 +60,4 @@ def read(file: IO, dialect: str, row_class: Type[Row]): setattr(row, f, x) rows.append(row) - print(rows) return rows diff --git a/mo/rights.py b/mo/rights.py index 6b67b630..3304c72c 100644 --- a/mo/rights.py +++ b/mo/rights.py @@ -186,7 +186,6 @@ class Rights: # We will use get_for but we need to slightly modify its behavior. Can # set role with * year only if current user has role with * year, thus we # need to pass year=0 for * year (cat and seq similarly). - print("YYYY", role.role) self.get_for( place=role.place, year=role.year or 0, @@ -194,6 +193,4 @@ class Rights: seq=role.seq or 0, min_role=role.role ) - print(self.current_place) - print(self.current_rights) return self.have_right(Right.assign_rights) -- GitLab