Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox URL Creation #581

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/gen_mappings.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import argparse
import yaml
import requests
import qrcode # type: ignore
import qrcode.image.svg # type: ignore
from typing import Any, Dict
from security import safe_requests

opencre_base_url = "https://opencre.org"
opencre_rest_url = "https://opencre.org/rest/v1"
Expand All @@ -29,7 +29,7 @@ def produce_webapp_mappings(source_file: Dict[Any, Any], standards_to_add: list[
for indx, suit in enumerate(source_file.copy()["suits"]):
for card_indx, card in enumerate(suit["cards"]):
cre = card["cre"][0]
response = requests.get(make_cre_link(cre), timeout=60)
response = safe_requests.get(make_cre_link(cre), timeout=60)
if response.status_code == 200:
cre_object = response.json().get("data")
for standard in standards_to_add:
Expand Down