Update scrolls.py
Browse files- scrolls.py +1 -1
scrolls.py
CHANGED
|
@@ -309,7 +309,7 @@ class Scrolls(datasets.GeneratorBasedBuilder):
|
|
| 309 |
|
| 310 |
if self.config.name == "quality":
|
| 311 |
is_hard = row.pop("is_hard", False)
|
| 312 |
-
if self.config.hard_only and is_hard:
|
| 313 |
continue
|
| 314 |
|
| 315 |
yield row["pid"], row
|
|
|
|
| 309 |
|
| 310 |
if self.config.name == "quality":
|
| 311 |
is_hard = row.pop("is_hard", False)
|
| 312 |
+
if self.config.hard_only and not is_hard:
|
| 313 |
continue
|
| 314 |
|
| 315 |
yield row["pid"], row
|