Skip to content

Commit

Permalink
fix moxfield integration
Browse files Browse the repository at this point in the history
cheers harry!
  • Loading branch information
ndepaola committed Nov 27, 2023
1 parent 4635270 commit 9879a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MPCAutofill/cardpicker/integrations/mtg.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_base_url() -> str:
def retrieve_card_list(cls, url: str) -> str:
deck_id = url.split("/")[-1]
response = requests.get(
f"https://api.moxfield.com/v2/decks/all/{deck_id}", headers={"user-agent": "Mozilla/5.0"}
f"https://api.moxfield.com/v2/decks/all/{deck_id}", headers={"x-requested-by": "mpcautofill"}
)

response_json = json.loads(response.content.decode("utf-8"))
Expand Down

0 comments on commit 9879a5e

Please sign in to comment.