Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 8, 2024
1 parent eebe7f6 commit 43e71a7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 0 additions & 2 deletions openlibrary/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,3 @@ class Reference(str):

def __repr__(self):
return "<ref: %s>" % str.__repr__(self)


12 changes: 12 additions & 0 deletions openlibrary/i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6222,6 +6222,18 @@ msgstr ""
msgid "Copy URL"
msgstr ""

#: ShareModal.html
msgid "Open QR code"
msgstr ""

#: ShareModal.html
msgid "QR code icon"
msgstr ""

#: ShareModal.html
msgid "QR Code"
msgstr ""

#: SponsorCarousel.html
msgid "Books to Sponsor"
msgstr ""
Expand Down
5 changes: 3 additions & 2 deletions openlibrary/plugins/openlibrary/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,9 @@ def POST(self):
json.dumps({'success': 'Preference saved'}), content_type="application/json"
)


class create_qrcode(delegate.page):
path='/qrcode'
path = '/qrcode'

def GET(self):
page_path = web.ctx.path
Expand All @@ -712,4 +713,4 @@ def GET(self):
with io.BytesIO() as buf:
img.save(buf, format='PNG')
web.header("Content-Type", "image/png")
return delegate.RawText(buf.getvalue())
return delegate.RawText(buf.getvalue())
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ pymarc==5.1.0
python-dateutil==2.8.2
python-memcached==1.59
PyYAML==6.0.1
qrcode==7.4.2
requests==2.31.0
sentry-sdk==1.28.1
simplejson==3.19.1
statsd==4.0.1
validate_email==1.3
qrcode==7.4.2

0 comments on commit 43e71a7

Please sign in to comment.