Skip to content

Commit d4d48b6

Browse files
committed
Removed token
1 parent 16a2a6a commit d4d48b6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

oshwa_magtag_display/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
https = requests.Session(socket, ssl.create_default_context())
3232

3333
# Paste your API token below
34-
#TOKEN = "YOUR_API_TOKEN"
35-
TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYwYTdlYmZiZjk2N2U2MDAxNzNmNWY0MCIsImlhdCI6MTYzMzM2NzM5NiwiZXhwIjoxNjQyMDA3Mzk2fQ.vJsMVR_b8QMl7APrqoEFNPXIq-jeLKXB8yUeQPIDK_o" # pylint: disable=line-too-long
34+
TOKEN = "YOUR_API_TOKEN"
35+
36+
3637
def font_width_to_dict(font):
3738
# Reads the font file to determine how wide each character is
3839
# Used to avoid bad wrapping breaking the QR code
@@ -87,7 +88,6 @@ def wrap(text, max_width, max_lines, font):
8788
return "\n".join(lines[:max_lines])
8889

8990

90-
9191
# Get first 300 items, saving only the OSHWA UIDs. The first 300 are also used to find the
9292
# number of requests that will need to be made.
9393
# This was done this way since if the items themselves were all asked for and stored, the MagTag
@@ -183,7 +183,7 @@ def wrap(text, max_width, max_lines, font):
183183
magtag.set_text(wrap(selected["projectName"], 545, 2, arial_12), 0, False)
184184
magtag.set_text(wrap(selected["projectDescription"], 530, 19, arial_9), 1)
185185
magtag.exit_and_deep_sleep(3600)
186-
except Exception: # pylint: disable=broad-except
186+
except Exception: # pylint: disable=broad-except
187187
print("Could not set title or description: unsupported glyphs.")
188188
print("Trying again in 10 seconds.")
189189
magtag.exit_and_deep_sleep(10)

0 commit comments

Comments
 (0)