We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2664fcd commit b498a76Copy full SHA for b498a76
mp_api/client/core/client.py
@@ -524,9 +524,7 @@ def _query_resource(
524
self.mute_progress_bars = True
525
has_gnome_access = bool(
526
self._submit_requests(
527
- url=urljoin(
528
- "https://api.materialsproject.org/", "materials/summary/"
529
- ),
+ url=urljoin(self.base_endpoint, "materials/summary/"),
530
criteria={
531
"batch_id": "gnome_r2scan_statics",
532
"_fields": "material_id",
@@ -653,7 +651,7 @@ def _flush(accumulator, group):
653
651
_flush(accumulator, group)
654
652
group += 1
655
size = 0
656
- accumulator = []
+ accumulator.clear()
657
658
if accumulator:
659
_flush(accumulator, group + 1)
0 commit comments