Skip to content

Commit 1e050e8

Browse files
authoredOct 6, 2020
chore: Upgrade python syntax through pyupgrade (fossasia#7326)
1 parent d64e389 commit 1e050e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+344
-397
lines changed
 

‎app/api/access_codes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def before_create_object(self, data, view_kwargs):
5353
if not ticket_object.is_hidden:
5454
raise ConflictError(
5555
{'pointer': '/data/relationships/tickets'},
56-
"Ticket with id {} is public.".format(ticket)
56+
f"Ticket with id {ticket} is public."
5757
+ " Access code cannot be applied to public tickets",
5858
)
5959
except NoResultFound:

‎app/api/admin_sales/events.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from app.api.helpers.utilities import dasherize
88
from app.models import db
99
from app.models.event import Event
10-
from app.models.order import Order, OrderTicket
1110

1211

1312
class AdminSalesByEventsSchema(Schema):

0 commit comments

Comments
 (0)