Skip to content

Commit b498a76

Browse files
committed
refactor
1 parent 2664fcd commit b498a76

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mp_api/client/core/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,7 @@ def _query_resource(
524524
self.mute_progress_bars = True
525525
has_gnome_access = bool(
526526
self._submit_requests(
527-
url=urljoin(
528-
"https://api.materialsproject.org/", "materials/summary/"
529-
),
527+
url=urljoin(self.base_endpoint, "materials/summary/"),
530528
criteria={
531529
"batch_id": "gnome_r2scan_statics",
532530
"_fields": "material_id",
@@ -653,7 +651,7 @@ def _flush(accumulator, group):
653651
_flush(accumulator, group)
654652
group += 1
655653
size = 0
656-
accumulator = []
654+
accumulator.clear()
657655

658656
if accumulator:
659657
_flush(accumulator, group + 1)

0 commit comments

Comments
 (0)